Terra-tier is a python Flask application that is deployed on AWS using a three-tier architecture. This project includes terraform scripts that automate the deployment of this application on AWS.
- Fork this repository.
- Clone your forked repository
- Navigate to the terraform directory
- Edit the
backend.tf
file. Add your own remote backend or use a local backend. - Execute
terraform plan
- If you are satisfied with the output of the plan, run
terraform apply
- Navigate to the your AWS EC2 Console, go to the provisioned load balancer, copy your DNS name.
- The DNS name is also printed as output to your screen after you finish running
terraform apply
. - Paste this DNS name into a web browser to access your appplication.
Here is a guide for you if you wish to manually deploy this application.
You can also choose to deploy this application using a CI/CD pipeline, specifically AWS CodePipeline. Here is an amazing resource I put up to guide on to deploy this application in a CI/CD pipeline using the blue/green deployment.