Commit 5d1cd14
authored
fix(amplify-e2e-tests): handle InvalidClientTokenId in getAmplifyApps opt-in region cleanup (#3512)
## Description
Opt-in regions (`ap-east-1`, `eu-south-1`) are not enabled on the e2e
test accounts. When `getAmplifyApps` calls the Amplify client in those
regions, it throws `InvalidClientTokenId`, which currently propagates
out of the cleanup script → `process.exit(1)` → fails the
`cleanup_e2e_resources` shard.
This mirrors the existing guard in `getStacks()` by also skipping on
`InvalidClientTokenId` (in addition to the existing
`UnrecognizedClientException`), logging and continuing rather than
failing.
This is a backport of the fix already on `main` (#3304) to the
`release-api-plugin-stable` branch.
## Scope
- e2e-cleanup only, not customer-facing
- Exactly one file, one logical change1 parent 42226cf commit 5d1cd14
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
0 commit comments