File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/amplify-codegen-e2e-tests/src Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,9 @@ const getOrphanTestIamRoles = async (account: AWSAccountInfo): Promise<IamRoleIn
176176const 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 ) ;
You can’t perform that action at this time.
0 commit comments