add credentials for sts client

This commit is contained in:
KM Koushik
2025-08-09 20:57:27 +10:00
parent da13107f88
commit 7ecb3d27a9

View File

@@ -29,6 +29,10 @@ async function getAccountId(region: string) {
const stsClient = new STSClient({
region: region,
credentials: {
accessKeyId: env.AWS_ACCESS_KEY,
secretAccessKey: env.AWS_SECRET_KEY,
},
});
const command = new GetCallerIdentityCommand({});
const response = await stsClient.send(command);