The objective of this project is to migrate a single server and deployments from a FTP to AWS services.
- We have used Terraform to create to create the resources in AWS.
- Makefile to automate the scripts.
- Docker to create the Wordpress image.
Team:
- Anderson
- Carine
- Heaven
Diagram of the proposed AWS Architecture:
The ecr repository need to be created in you aws account before you push the image to the ecr. Run below command to create a ecr repository if you don't have the repository created.
make prep_ecr
You also need to have a domain registered under AWS Route53 and configure it in var.domainname You need to configure the variable var.certificate_arn with your aws certificate arn to enable HTTPS. Here you'll find the file with variables to update main.tfvars
Run below to push wordpress image to ECR from the Dockerfile.
make push_image
Run below to deploy the whole stack that will run ec2 instances from the image that you pushed to the ecr
make apply_aws
Destroy everything! Also de DB, be careful!
make destroy_aws