Skip to content

friendly-devops/CDKTF_AWS

Repository files navigation

AWS Wordpress ECS deployment with CDKTF

Architecture

ECS Microservices CDKTF-AWS

Instructions

This deployment requires the use of user Access Keys.

To deploy using deploy using Terraform Cloud, uncomment lines 13, 127-134 in main.ts and comment out line 122.

Comment out Config credentials in .github/workflows/deployment-workflow.yml

Add CDKTF_ECS_TFC_ORGANIZATION to the env block of CDKTF Deployment in .github/workflow/deployment-workflow.yml with the name of your organizatoin as the value.

In the secrets and variables Actions menu, place the following key pairs

1. AWS_ACCOUNT: <AWS_ACCOUNT>
2. AWS_ROLE: <AWS_ROLE>
3. DB_USER: <database_user_name>
4. DB_PASS: <database_password>
5. VPC_ID: <id_of_vpc>
6. AWS_STATE_BUCKET: <backend_bucket_to_store_state>
7. SUBNET: <first_subnet>
8. SUBNET_2: <second_subnet>
9. ZONEID: <route53 zone id>
10. CERTIFICATE: <certificate manager arn>

Deploy Application:

1. Navigate to the Actions tab
2. Select Deployment Workflow on the left panel
3. Select Run workflow
4. Ensure the correct branch is selected
6. Ensure deploy is selected in the drop down menu
7. Run workflow

Verify deployment by:

1. Follow the deployment at the bmo-iac-cluster on the ECS page.
2. Visit the FQDN created by the Route53 stack

Destroy Application:

1. Navigate to the Actions tab
2. Select Deployment Workflow on the left panel
3. Select Run workflow
4. Ensure the correct branch is selected
6. Ensure destroy is selected in the drop down menu
7. Run workflow

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published