File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/amplify-codegen-e2e-tests/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ const getOrphanTestIamRoles = async (account: AWSAccountInfo): Promise<IamRoleIn
167167 ...( region ? { region } : { } ) ,
168168 maxRetries : 10 ,
169169 } ) ;
170-
170+
171171 /**
172172 * Returns a list of regions enabled given the AWS account information
173173 * @param accountInfo aws account to check region
@@ -192,6 +192,7 @@ const getRegionsEnabled = async (accountInfo: AWSAccountInfo): Promise<string[]>
192192 enabledRegions . push ( ...response . Regions . map ( r => r . RegionName ) . filter ( Boolean ) ) ;
193193 } while ( nextToken ) ;
194194
195+ console . log ( 'All enabled regions fetched: ' , enabledRegions ) ;
195196 return enabledRegions ;
196197} ;
197198
@@ -205,7 +206,6 @@ const getRegionsEnabled = async (accountInfo: AWSAccountInfo): Promise<string[]>
205206const getAmplifyApps = async ( account : AWSAccountInfo , region : string , regionsEnabled : string [ ] ) : Promise < AmplifyAppInfo [ ] > => {
206207 const amplifyClient = new aws . Amplify ( getAWSConfig ( account , region ) ) ;
207208
208- console . log ( regionsEnabled ) ;
209209 if ( ! regionsEnabled . includes ( region ) ) {
210210 console . error ( `Listing apps for account ${ account . accountId } -${ region } failed since ${ region } is not enabled. Skipping.` ) ;
211211 return [ ] ;
You can’t perform that action at this time.
0 commit comments