Skip to content

Teardown workflow #42

@mwarman

Description

@mwarman

Describe the story

Create a GitHub Actions workflow which will tear down (a.k.a. destroy) the AWS CDK provisioned infrastructure for a given environment. This should be similar to the deploy-dev workflow, but instead tear down the infrastructure.

Acceptance criteria

GIVEN the reusable teardown workflow is initiated
WHEN the teardown workflow runs
THEN the code is checked out
AND the NodeJS environment is set up
AND the Infrastructure dependencies are installed
AND the AWS credentials are obtained
AND the AWS CDK application destroys all stacks

GIVEN the DEV environment teardown workflow is initiated
WHEN the workflow runs
THEN it calls the reusable teardown workflow
AND it passes the AWS ROLE ARN as a parameter
AND it passes the AWS REGION as a parameter
AND it passes the AWS CDK environment variables as a paremter

Additional context

n/a

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions