Skip to content

Latest commit

 

History

History
49 lines (24 loc) · 1.83 KB

README.md

File metadata and controls

49 lines (24 loc) · 1.83 KB

Udagram

The following document contains instructions on how to deploy a highly available web application using AWS CloudFormation.

Architecture Diagram

Diagram

Infrastructure Deployment

The application infrastructure consists of deploying the following stacks:

  1. Network. This includes VPC, two pairs of public and private subnets, Internet Gateway, NAT Gateways and Routing Tables for public and private subnets with associations.
  2. Bastion hosts (Optional). These are EC2 instances for troubleshooting of application web servers.
  3. Application services. In particular, Load Balancer, web servers and corresponding autoscaling, target and security groups.

Create infrastructure

To create the infrastructure stack run the following commands in the same order as below:

  1. ./create.sh networkstack Infra-Config.yml Infra-Params.json

  2. ./create.sh appserverstack App-Servers-Config.yml App-Ser ers-Params.son

Verify deployment

To check whether the web application is running, follow the web application public URL, which could be found in output exports of application-servers cloud formation stack.

Update infrastructure

To update the already existing infrastructure stack run one (or all) the following commands:

  1. ./update.sh networkstack Infra-Config.yml Infra-Params.json

  2. ./update.sh appserverstack App-Servers-Config.yml App-Ser ers-Params.son

Delete infrastructure

To delete the infrastructure stack run the following commands in the same order as below:

  1. ./delete.sh appserversstack

2../delete.sh networkstack

Note: you would have to type 'yes' to confirm the stack deletion in the command prompt.