Practical example on how to get a Wordpress running under an Amazon ECS Cluster using different technologies.
To use this example you will need an AWS account and:
- Deploy all the infrastructure needed on AWS using Terraform.
# terraform apply
Once deployed, Terraform will display the ECS Container Instances public IPs and the ELB URL that will distribute the traffic across the different Wordpress container instances.
The RDS connection parameters will be passed on runtime to the Wordpress containers via environment variables.
- Once not needed, we can remove all the AWS infrastructure:
# terraform destroy
This example uses a basic and simple approach to get a ready to use Wordpress using different technology. Further modifications will be done to get a fully automated, scalable and high available Wordpress.