Create ALB
Create ASG with Launch Template. Use AWS Ubuntu AMI. Type t2-micro.
Userdata: setup nginx server. ASG Min size:1, desired:2, max:3
Attach ASG as Target Group to ALB
Configure SSL/TLS certificate on ALB
Register A-record in Route53 for ALB
Check your cluster in browser
- AWS account
- GitHub account
- Registered DNS domain
- AWS CLI installed and configured
- Terraform installed and configured for your AWS account
- terraform plan
- terraform apply
- Check your site with browser
- Use terraform destroy to free-up your recourses