add credentials for sts client
This commit is contained in:
1 parent
da13107f88
commit
7ecb3d27a9
1 file changed
+4
@@ -29,6 +29,10 @@ async function getAccountId(region: string) {
|
|||||||
|
|
||||||
const stsClient = new STSClient({
|
const stsClient = new STSClient({
|
||||||
region: region,
|
region: region,
|
||||||
|
credentials: {
|
||||||
|
accessKeyId: env.AWS_ACCESS_KEY,
|
||||||
|
secretAccessKey: env.AWS_SECRET_KEY,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
const command = new GetCallerIdentityCommand({});
|
const command = new GetCallerIdentityCommand({});
|
||||||
const response = await stsClient.send(command);
|
const response = await stsClient.send(command);
|
||||||
|
|||||||
Reference in new issue
Block a user