GitHunt
HA

harshsahu97/Code-To-Infrastructure-AWS-Cloudformation

Code-To-Infrastructure-AWS-Cloudformation

alt

This cloud formation template deploys a EC2 instance with a VPC.

How to Run?

PreRequisites

  • AWS CLI

Setup Project:

1. Set Up network:
$ aws cloudformation create-stack --stack-name <STACK NAME>  --region us-east-1 --template-body file://network.yml --parameters file://network_params.json
2. Set Up SERVER:
$ aws cloudformation create-stack --stack-name <STACK NAME>  --region us-east-1 --template-body file://just_ec2.yml --parameters file://server_params.json
3. Check EC2, VPC and CloudFormation consoles.

Note : In server_params.json file EnvironmentName must be used whose VPC is already created.

harshsahu97/Code-To-Infrastructure-AWS-Cloudformation | GitHunt