Skip to content

Commit c052802

Browse files
committed
chore: test run
Signed-off-by: Kevin Shan <[email protected]>
1 parent 08f4c46 commit c052802

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ const getOrphanTestIamRoles = async (account: AWSAccountInfo): Promise<IamRoleIn
176176
const getRegionsEnabled = async (accountInfo: AWSAccountInfo): Promise<string[]> => {
177177
// Specify service region to avoid possible endpoint unavailable error
178178
const account = new Account({ ...accountInfo, region: 'us-east-1' });
179-
const response = await account.listRegions().promise();
179+
const response = await account.listRegions({ RegionOptStatusContains: ['ENABLED', 'ENABLED_BY_DEFAULT'] }).promise();
180180
console.log(response);
181+
console.log(response.Regions);
181182
const enabledRegions = response.Regions.map(r =>
182183
r.RegionOptStatus === 'ENABLED' || r.RegionOptStatus === 'ENABLED_BY_DEFAULT' ? r.RegionName : null,
183184
).filter(Boolean);

0 commit comments

Comments
 (0)