We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3f5bb3 commit 25e4caeCopy full SHA for 25e4cae
packages/amplify-codegen-e2e-tests/src/cleanup-e2e-resources.ts
@@ -118,7 +118,7 @@ const handleExpiredTokenException = (): void => {
118
* @returns true if region is enabled in that account, false otherwise
119
*/
120
const isRegionEnabled = async (accountInfo: AWSAccountInfo, region: string): Promise<boolean> => {
121
- const account = new Account(getAWSConfig(accountInfo, region));
+ const account = new Account({ ...accountInfo, region: 'us-east-1' });
122
const optStatus = await account.getRegionOptStatus({ RegionName: region }).promise();
123
124
return optStatus.RegionOptStatus === 'ENABLED' || optStatus.RegionOptStatus === 'ENABLED_BY_DEFAULT';
0 commit comments