This repo contains AWS cloud formation scripts used to automate AWS infractructure setup presented in the series of mini articles The Path Towards Enterprise Level AWS Infrastructure:
- The Path Towards Enterprise Level AWS Infrastructure – Architecture Scaffolding
- The Path Towards Enterprise Level AWS Infrastructure – EC2, AMI, Bastion Host, RDS
- The Path Towards Enterprise Level AWS Infrastructure – Load Balancing and Application Deployment
You can find live infrastructure setup recording here.
NOTE: The scripts lack automated application deployment scripts.
The repo contains two cloud formation stacks:
-
The first one spins up networking part of the infrastructure (scaffolders) - infra-stack.yml. To create stack, simply run
./create-infra.sh
script. -
The second stack is responsible for booting up VMs (AWS EC2) & MySql Database (AWS RDS) - vm-and-db-stack.yml. Accordingly, to start the stack run:
./create-vm-and-db.sh
To make the infrastructure even more resilient and scalable, we may use AWS Auto Scaling Groups instead of having 'hardcoded' EC2 instances configured in Cloud Formation script. Improved vm-and-db-stack that implements it, is available in ec2-auto-scaling GIT branch.