Skip to content

Commit d954a83

Browse files
author
Kamil Sobol
authored
chore: fix cleanup script (#12153)
1 parent e9220d5 commit d954a83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ const AWS_REGIONS_TO_RUN_TESTS = [
2323
'ap-southeast-2',
2424
];
2525

26+
const AWS_REGIONS_TO_RUN_TESTS_PINPOINT = AWS_REGIONS_TO_RUN_TESTS.filter((region) => region !== 'eu-west-3');
27+
2628
// Limits are enforced per region
2729
// we collect resources from each region & then delete as an entire batch
2830
const DELETE_LIMITS = {
@@ -945,7 +947,9 @@ const cleanupAccount = async (account: AWSAccountInfo, accountIndex: number, fil
945947
const appPromises = AWS_REGIONS_TO_RUN_TESTS.map((region) => getAmplifyApps(account, region));
946948
const stackPromises = AWS_REGIONS_TO_RUN_TESTS.map((region) => getStacks(account, region));
947949
const bucketPromise = getS3Buckets(account);
948-
const orphanPinpointApplicationsPromise = AWS_REGIONS_TO_RUN_TESTS.map((region) => getOrphanPinpointApplications(account, region));
950+
const orphanPinpointApplicationsPromise = AWS_REGIONS_TO_RUN_TESTS_PINPOINT.map((region) =>
951+
getOrphanPinpointApplications(account, region),
952+
);
949953
const orphanBucketPromise = getOrphanS3TestBuckets(account);
950954
const orphanIamRolesPromise = getOrphanTestIamRoles(account);
951955
const orphanAppSyncApisPromise = AWS_REGIONS_TO_RUN_TESTS.map((region) => getOrphanAppSyncApis(account, region));

0 commit comments

Comments
 (0)