Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.67 KB

File metadata and controls

27 lines (17 loc) · 1.67 KB

Deploying a Web App using CloudFormation

Project Overview

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.

Setup Environment

Optional

  • 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.

Running the Application

  • 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.

Architecture

WebApp