bumpy-whale-53138
04/27/2022, 10:11 AMfor (const accountId of accountsIds) {
const accountConfig = accountsConfig[accountId];
const accountCreds = assumeAccountAdminRole(accountId);
for (const region of accountConfig.regions) {
// deploy resources in each region of the account
}
}
I read about the Automation API, but there's no way to pass on-the-fly credentials to it (or at least I didn't find it),
I ended up wrapping the Pulumi CLI in a loop passing env vars something like: AWS_REGION AWS_SESSION pulumi ${command} -s ${stack}
Any guidance would be great! đź’Ş Thanks everyone!echoing-dinner-19531
04/27/2022, 10:18 AMvictorious-church-57397
04/27/2022, 10:26 AMbumpy-whale-53138
04/27/2022, 11:30 PMechoing-dinner-19531
04/28/2022, 8:04 AMbumpy-whale-53138
04/28/2022, 8:33 AMechoing-dinner-19531
04/28/2022, 8:36 AM