This is to set up wordpress using AWS infrastructure. We are using terraform to provision infrastructure. Code uses and creates following aws services.
- VPC.
- Subnets.
- Security Groups.
- EC2 instance.
- RDS mariadb instance.
You may get charged by aws for using services
You need to create an IAM user and create security credentials(AccessKey, SecretKey) and update in the ~/.aws/credentials file
- git clone https://github.com/meriem-mounchid/rds-example.git rds-example
- cd rds-example (Be in the repo directory)
- terraform init
- terraform plan
- terraform apply -auto-approve
- cd rds-example (Be in the repo directory)
- terraform destroy -auto-approve