CloudFormation template for highly available & secure WordPress deployment with RDS and custom VPC on AWS.
This CloudFormation template creates a custom VPC with 2 public and 2 private subnets.
- VPC
- 4 Subnets
- Route Tables
- Internet Gateway
- NAT Gateway
This CloudFormation template creates security groups.
- Load Balancer Security Group
- Database Security Group
- Application Security Group
This CloudFormation template creates a RDS with MySQL Engine.
- Subnet Group
- RDS
This CloudFormation template creates a ASG and LB to deploy the application.
- Launch Configuration
- Auto Scaling Group
- Scaling Policy
- Target Group
- Load Balancer
- HTTP Listener
- HTTPS listener
- Higly Available, Scalable and Secure Architecture
- End-to-End Automated
- Must have an AMI with Nginx & Php-Fpm configured
- Application should return 200 Status Code on some path for health checks
- Must have a registered domain
- Must have certificate ARN of a Domain
Clone the repository and use the yaml files to create stack in the following order:-
- Networking Layer
- Security Layer
- Data Layer
- Compute Layer Fill all the parameter value and create stack.
- Add Backup for media content using S3 Bucket.
- Add a Bastion or VPN server to administer application instances securely.
- Add Secret Manager or SSM Paramtere store to store RDS credentials.
- Add domain mapping for LB in Route53.