Describe the story
Create a reusable GitHub Actions workflow which will deploy the AWS CDK provisioned infrastructure for a given environment. This should be similar to the "teardown" workflows, but instead deploy the infrastructure. Currently, there is a DEV deployment workflow that is environment-specific. Break this into a reusable workflow and an environment-specific workflow.
Acceptance criteria
GIVEN the reusable deploy workflow is initiated
WHEN the deploy workflow runs
THEN the code is checked out
AND the NodeJS environment is set up
AND the AWS credentials are obtained
AND the application dependencies are installed
AND the application is built
AND the application unit tests are run
AND the infrastructure dependencies are installed
AND the infrastructure is built
AND the AWS account is checked to see if the AWS CDK has been bootstrapped
AND the infrastructure is synthesized
AND the infrastructure is deployed
AND sensitive files are cleaned up
GIVEN the DEV environment deploy workflow is initiated
WHEN the workflow runs
THEN it calls the reusable deploy 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 parameter
Additional context
n/a