https://github.com/dsdatsme/cloudformation-ec2-high-availability-template
To automate static website deployment using AWS CloudFormation
https://github.com/dsdatsme/cloudformation-ec2-high-availability-template
aws cloudformation
Last synced: 2 months ago
JSON representation
To automate static website deployment using AWS CloudFormation
- Host: GitHub
- URL: https://github.com/dsdatsme/cloudformation-ec2-high-availability-template
- Owner: DSdatsme
- Created: 2020-04-04T11:19:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-04T11:54:46.000Z (about 5 years ago)
- Last Synced: 2025-02-12T12:55:19.483Z (4 months ago)
- Topics: aws, cloudformation
- Language: Shell
- Homepage:
- Size: 302 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CloudFormation High Availability Template
Creating AWS highly available infrastructure with ec2 auto scaling groups and load balancers.
## AWS Services Used
- EC2
- CloudFormation
- IAM
- VPC
- S3## Stack

## Resources Created
- 1 VPC
- 2 Public Subnets
- 2 Private Subnets where application will be deployed
- Internet Gateway to access internet
- 2 Elastic IPs for NatGateways
- 2 NatGateways each to be atached to private subnets
- 3 RouteTable one for public and two for private subnets
- 4 RouteTable associations for each subnets to their respective RouteTable
- 1 Public route for connecting to internet
- 2 Private route for connecting to NAT Gateway
- 2 Security Groups for LoadBalancer and Servers
- 1 IAM Role for accessing S3 bucket
- 1 Instance Profile which will be attached to EC2
- 1 Target group for LoadBalancer
- 1 LaunchConfiguration for instance template
- 1 Instance Group
- 1 Application LoadBalancer
- 1 ALB port listner
- 1 ALB Listner rule for path pattern## Create Stack
If you are creating the stack for the first time.
```bash
bash create.sh
```## Update Stack
If you are tweaking the cloudformation template, use the following command to update the stack
```bash
bash update.sh
```> **NOTE**: make sure you specify your S3 bucket and upload `index.html` to your created S3 bucket.