Skip to content

wnjuguna/udacity-IAC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Udacity Cloud Computing: Infrastructure As Code project

This cloud formation template will deploy a webapp on the following infrastructure:

  • VPC
  • s3 read-only IAM role
  • Internet gateway
  • NAT gateways
  • Public and Private subnets in 2 availability zones
  • Launch configuration for: Auto-scaling group, EC2 instances
  • Elastic Load Balancer with Health Checks
  • Bastion host (Development environment only)

Supported parameters:

  • EnvType: Prod or Dev
  • KeyName: EC2 Key-pair. (required when EnvType is Dev)
  • TrustedHosts: source ip address permitted to SSH to BastionHost (required when EnvType is Dev)
  • InstanceType: EC2 instance type to deploy
  • VPCSubnet: CIDR network for your VPC
  • FleetSize: Number of EC2 instances to deploy

How to deploy:

  • Run the following aws-cli command:
aws cloudformation create-stack --stack-name <udagram> --parameters ParameterKey=KeyName,ParameterValue=<my-ec2-key> ParameterKey=TrustedHosts,ParameterValue=<ip-address/32> --capabilities CAPABILITY_IAM --template-body <file///path/to/udagram.yml>

How to destroy stack

  • Run the following aws-cli command:
aws cloudformation delete-stack --stack-name <udagram>

About

CloudFormation template to deploy a webapp.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors