https://github.com/cirocosta/sample-aws-networking
Example of AWS networking setup using Terraform
https://github.com/cirocosta/sample-aws-networking
aws networking terraform vpc
Last synced: 3 months ago
JSON representation
Example of AWS networking setup using Terraform
- Host: GitHub
- URL: https://github.com/cirocosta/sample-aws-networking
- Owner: cirocosta
- Created: 2018-02-17T17:59:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-19T21:38:29.000Z (over 7 years ago)
- Last Synced: 2025-05-07T18:51:45.573Z (5 months ago)
- Topics: aws, networking, terraform, vpc
- Language: HCL
- Homepage: https://ops.tips/blog/a-pratical-look-at-basic-aws-networking
- Size: 11.7 KB
- Stars: 9
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
DESCRIPTION
This repository holds an example of using Terraform to set up
basic AWS networking for a multi-az environment in a single
region.It consists of:
- single VPC
- multiple subnets via single configuration`main.tf` summarizes the usage of the custom `networking` module:
module "networking" {
source = "./networking"
cidr = "10.0.0.0/16""az-subnet-mapping" = [
{
name = "subnet1"
az = "sa-east-1a"
cidr = "10.0.0.0/24"
},
{
name = "subnet2"
az = "sa-east-1c"
cidr = "10.0.1.0/24"
},
]
}resource "aws_instance" "inst1" {
instance_type = "t2.micro"
ami = "${data.aws_ami.ubuntu.id}"
key_name = "${aws_key_pair.main.id}"
subnet_id = "${module.networking.az-subnet-id-mapping["subnet1"]}"
}MORE
https://ops.tips/blog/a-pratical-look-at-basic-aws-networking