Skip to content

Commit

Permalink
Stack cleanup fix (#755)
Browse files Browse the repository at this point in the history
* construct correct stack name on e2e cleanup

* empty changeset
  • Loading branch information
edwardfoyle authored Dec 2, 2023
1 parent d47d773 commit 8facb32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changeset/eight-bags-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
rejectCleanupSandbox,
waitForSandboxDeploymentToPrintTotalTime,
} from '../process-controller/predicated_action_macros.js';
import { BackendIdentifierConversions } from '@aws-amplify/platform-core';

const cfnClient = new CloudFormationClient();

Expand Down Expand Up @@ -57,7 +58,11 @@ void describe('Live dependency health checks', { concurrency: true }, () => {

afterEach(async () => {
await fs.rm(tempDir, { recursive: true });
const stackName = `amplify-${testBranch.appId}-${testBranch.branchName}`;
const stackName = BackendIdentifierConversions.toStackName({
namespace: testBranch.appId,
name: testBranch.branchName,
type: 'branch',
});
try {
await cfnClient.send(
new DeleteStackCommand({
Expand Down

0 comments on commit 8facb32

Please sign in to comment.