This repo contains terraform code for setting up AWS environment for a wordpress application and rds.
- VPC
- 6 Subnets(2Public, 2Application, 2DB)
- Internet Gateway
- NACLs
- RouteTables
- NatGateway
- Autoscaling group
- ELB(Natively supported)
- Launch configuration
- RDS with mysql, etc,
- ALB(Added later)
This will creates 29 resources in total.
- Clone repo
- Add your AWS credentials in vars.tf file
- Run "terraform apply"
- On successful execution this will return ELB_Endpoint, hit that and access you application.
- Run "terraform destroy -force"
NOTE: All resources are selected in free tire.
- For DB version and sizing modify rds.tf file as per need.
- For ASG related parameters change modify autoscling.tf.
:) :)