Skip to content

Commit 25e4cae

Browse files
committed
chore: specific service region
Signed-off-by: Kevin Shan <[email protected]>
1 parent b3f5bb3 commit 25e4cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/amplify-codegen-e2e-tests/src/cleanup-e2e-resources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const handleExpiredTokenException = (): void => {
118118
* @returns true if region is enabled in that account, false otherwise
119119
*/
120120
const isRegionEnabled = async (accountInfo: AWSAccountInfo, region: string): Promise<boolean> => {
121-
const account = new Account(getAWSConfig(accountInfo, region));
121+
const account = new Account({ ...accountInfo, region: 'us-east-1' });
122122
const optStatus = await account.getRegionOptStatus({ RegionName: region }).promise();
123123

124124
return optStatus.RegionOptStatus === 'ENABLED' || optStatus.RegionOptStatus === 'ENABLED_BY_DEFAULT';

0 commit comments

Comments
 (0)