Skip to content

Create a vpc with two public subnets with aws cli in bash script and CloudFormation template.

Notifications You must be signed in to change notification settings

optionalg/vpc_2public_sub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

vpc_cli_2sub

Create a vpc by bash script or CloudFormation Template. With this script you will create a VPC (virtual private cloud) on AWS.

The script creates:

  1. VPC.
  2. Two public subnets in eu-west-1 region ( in to different Avability Zones).
  3. Internet Gateway
  4. Route table with default entry.

USING bash script:

  1. Download .sh file.
  2. Add execute permision: chmod +x create_vpc_2p.sh
  3. Just run the script: create_vpc_2p.sh

USING CloudFormation: Use the content of the file in AWS CloudFormation console. More details: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stack.html

Remember, my script include AZ from Virginia Regions.

About

Create a vpc with two public subnets with aws cli in bash script and CloudFormation template.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%