https://github.com/colinbut/aws-public-private-vpc
An example of an automated AWS VPC with both public and private subnets
https://github.com/colinbut/aws-public-private-vpc
aws aws-cloudformation aws-vpc cloudformation private-subnets public-subnets vpc
Last synced: about 1 month ago
JSON representation
An example of an automated AWS VPC with both public and private subnets
- Host: GitHub
- URL: https://github.com/colinbut/aws-public-private-vpc
- Owner: colinbut
- Created: 2019-09-08T16:15:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T19:59:14.000Z (over 5 years ago)
- Last Synced: 2025-02-01T14:46:17.466Z (3 months ago)
- Topics: aws, aws-cloudformation, aws-vpc, cloudformation, private-subnets, public-subnets, vpc
- Language: HCL
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS Public-Private - VPC
This repo contains an examples of both a Cloudformation template and a Terraform configuration to build a VPC with 2x Public Subnets & 2x Private Subnets
An Internet Gateway is launched and is attached to the VPC so that outbound & inbound internet traffic permits
Resources launched inside the private Subnets (e.g. EC2 instances) would not be able to talk to the internet by default but can do so by way of contacting a NAT Gateway which is resided in the corresponding Public Subnet.
## Cloudformation
via the AWS CLI:
```bash
aws cloudformation create-stack --stack-name [your-stack-name] --template-body public-private-vpc.yml
```where `[your-stack-name]` is your chosen name for your Cloudformation stack
## Terraform
```bash
terraform init
``````bash
terraform plan
``````bash
terraform apply
```