Skip to content

Instantly share code, notes, and snippets.

View dahjohnson's full-sized avatar

Dahmear Johnson dahjohnson

View GitHub Profile
@dahjohnson
dahjohnson / deploy-3tier-arch.yml
Created December 3, 2022 01:59
Deploy a Simple 3-Tier Architecture AWS CloudFormation template
Description: This AWS Cloudformation template deploys a 3-tier architecture in the us-east-1 region
Parameters:
EnvironmentName:
Description: An environment name that is prefixed to resource names
Type: String
Default: 3-Tier
KeyPair:
Description: Please enter the name of the SSH Key Pair for remote access to EC2 instances
@dahjohnson
dahjohnson / starwars.json
Created November 22, 2022 15:45
Star Wars character data for DynamoDB table
{
"starwars": [
{
"PutRequest": {
"Item": {
"name": {"S": "Luke Skywalker"},
"height": {"N": "172"},
"mass": {"N": "77"},
"hair_color": {"S": "blonde"},
"skin_color": {"S": "fair"},
@dahjohnson
dahjohnson / deploy-asg-with-applb-and-natgw.yml
Last active December 3, 2022 15:49
Deploy an Auto Scaling Group behind an Application Load Balancer and NAT Gateway using AWS CloudFormation
Description: This template deploys the following
- VPC with three separate private and public subnets spread across three Availability Zones
- Internet gateway with a default route on the public subnets
- NAT gateway in the public subnet of the first availability zone with a default route on the private subnets
- Security Group allowing HTTP inbound only from 0.0.0.0/0
- EC2 Launch Template
- Auto Scaling Group using Launch Template
- Application Load Balancer
Parameters: