Skip to content

Commit 4cbda39

Browse files
committed
change
1 parent 3885955 commit 4cbda39

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,13 @@ const getStacks = async (account: AWSAccountInfo, region: string, regionsEnabled
304304
})
305305
.promise();
306306

307+
console.log(stacks);
308+
console.log("*****fstack status filtering ****************")
309+
307310
// We are interested in only the root stacks that are deployed by amplify-cli
308-
const specificPattern = /amplify-.*-integtest-[a-z0-9]+/;
311+
const specificPattern = /^amplify-.*-integtest-[a-z0-9]+$/;
309312
// const rootStacks = stacks.StackSummaries.filter(stack => !stack.RootId);
310-
const rootStacks = stacks.StackSummaries.filter(stack => !stack.RootId && specificPattern.test(stack.StackName));
313+
const rootStacks = stacks.StackSummaries.filter(stack => specificPattern.test(stack.StackName));
311314
const results: StackInfo[] = [];
312315
for (const stack of rootStacks) {
313316
try {

0 commit comments

Comments
 (0)