- Trial run started from Connecting WordPress to Amazon RDS using Terraform
- Creates an EC2 t2.micro instance and an RDS instance
- Installs WordPress on that instance
- You have terraform installed
- You have set up AWS key pairs
- Set up a
.tfvars
file withdb_username
anddb_password
- Run
terraform init
- (optionally) run
terraform plan -var-file=".tfvars"
to see changes that will be made - Run
terraform apply -var-file=".tfvars"
to apply - Visit you eC2 instance in AWS and visit the public IP
You can run terraform destroy
to ditch anything made.