This projects aims to deploy two types of infrastructures. One type of script will deploy network infrastructure and the other will deploy server infrastructure. Following resources will be created for network infrastructure: VPC, Two subnets (Private and Public), Internet Gateway with attachment to VPC. Server infrastructure deploys multiple EC2 instances through Autoscaling group and Userdata script, Elastic Load Balancer.
Important note: First we deploy Network stack. Then we will deploy Server Stack. Since Network stack has VPC, subnets (private and public), VPC NAT Gateway, Internet Gateway. The server stack is linked to the network stack. If you deploy server stack first then it will fail.
Type on command prompt/terminal:
./create.sh ourinfra ourinfra.yml network-parameters.json
If any changes are made to the network stack. Then run the following command:
./update.sh ourinfra ourinfra.yml network-parameters.json
Type on command prompt/terminal:
./create.sh serverstack serverIAC.yml demoservers.json
If any changes are made to the server stack. Then run the following command:
./update.sh serverstack serverIAC.yml demoservers.json