🚀 Full DMS Deploy - dvsa/des-workflow-actions GitHub Wiki

Description

This reusable workflow automates the deployment steps required when there is a change to the static task for DMS in a specified Terraform environment. The steps will be run on an EC2 instance, which will have been set up using this action.

Workflow Triggers

On Workflow Call

This workflow is called from the des-terraform repository when a manual run is triggered. It is also called from within other deploy workflows when the input full-dms-deploy is set to true.

Environment Variables

Name Description
DMS_CW_RULES The CloudWatch rules to disable/enable - obtained from AWS Secrets Manager
TARS_DB_CNAME The DNS record that maps to the TARS database
TARS_DB_USERNAME The username to assume to perform actions on the TARS database
TARS_DB_PASSWORD The password of the user for the TARS database

Inputs

Name Description Options
runner The label of the EC2 GHA runner that has been spun up for deployment N/A
aws-account The AWS account to run a full DMS deploy in N/A
tf-environment The Terraform environment to run a full DMS deploy in dev | uat
db-script-branch The branch to run the database scripts from N/A
full-load-sleep-time The amount of time in seconds to sleep to allow the full load to run N/A

Notes

  • GitHub Actions secrets required: AWS_ACCOUNT_ID, AWS_ROLE_MGMT, DVSA_AWS_REGION, AWS_ROLE_NONPROD, AWS_ROLE_PROD, & GH_TOKEN