Original from: https://github.com/aleti-pavan/terraform-aws-wordpress
This is to set up wordpress using AWS infrastructure. We are using terraform to provision infrastructure. Code uses and creates following aws services.
- VPC and it's components
- Subnets, Route Tables, Internet Gateway, Nat Gateway.
- EC2 instance
- EIP for NAT Gateway
- RDS mysql instance.
- Security Groups to access both EC2 and MYSQL
- git clone https://github.com/aguscuk/tf-aws-wp-rds-ec2.git
- cd tf-aws-wp-rds-ec2
- terraform init
- terraform plan
- terraform apply -auto-approve
- cd tf-aws-wp-rds-ec2 (Be in the repo directory)
- terraform destroy -auto-approve
Terraform v0.12.24
- provider.aws v2.12.0
- provider.template v2.1.2