Skip to content

Commit 608c81a

Browse files
committed
chore: cleanup
Signed-off-by: Kevin Shan <[email protected]>
1 parent b276dce commit 608c81a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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[]>
205206
const 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 [];

0 commit comments

Comments
 (0)