A company is creating an Instagram clone called Udagram. Developers want to deploy a new application to the AWS infrastructure. This repository contains code to provisioning the required infrastructure and deploying the application, along with the necessary supporting software.
- AWS Account
- Install and configure AWS CLI
- Create an s3 bucket
- Upload a simple static website as a zip file to the s3 bucket (Launch config will copy this file to your ec2 instances)
- network-stack.yaml file - code to setup the network infrastructure (VPC -Public and Private Subnets -Internet Gateway -NAT Gateway -Elastic IP address and -Route Tables)
- server-stack.yaml file - code to create the compute resources (Load Balancer -Autoscaling Group - IAM roles - Target Groups -EC2 Launch configuration)
- network-parameters.json file - Network parameters
- server-parameters.json file - Compute parameters
- clone repository
- navigate to the cloned folder
- run this command
aws cloudformation create-stack --stack-name network-stack --region us-east-1 --template-body file://network-stack.yml --parameters file://network-params.json
to create the network infrastructure - run this command
aws cloudformation create-stack --stack-name compute-stack --region us-east-1 --template-body file://server-stack.yml --parameters file://server-params.json --capabilities "CAPABILITY_IAM" "CAPABILITY_NAMED_IAM"
to create the compute infrastructure