add credentials for sts client
This commit is contained in:
@@ -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