The project consist of using Cloudformation to create an infrastructure that is easy to spin up for either testing or production. It utilizes AWS Cloudformation ability to create infrastructure as a stack which can be easily created, deleted or updated in a few steps. The network infrastructure created includes a VPC, two public subnets, two private subnets with each having a NAT. The server infrastructure consist of Load Balancer for distribution of traffic, auto scaling group and security groups.
- Create AWS Account.
- AWS CLI install and configure
- Create CircleCI Account.
- Guide on getting started with CircleCi.
- Add Environment Variables in the CircleCi project for AWS_SECRET_KEY, AWS_REGION and AWS_ACCESS_KEY.
- Go to server deployment file and change ImageId for a specific region.
- Go to scripts and in both file change region.
- Run the create-network.sh file and wait until it is finished (check in the AWS Cloudformation console) and then run create-server.sh
- Go to AWS Cloudformation console and find ServerStack, go to outputs to find the LoadBalancer url.