github.com/candidpartners/terraform@v0.9.5-0.20171005231213-29f5f88820f6/examples/aws-networking/region/vpc.tf (about) 1 resource "aws_vpc" "main" { 2 cidr_block = "${cidrsubnet(var.base_cidr_block, 4, lookup(var.region_numbers, var.region))}" 3 } 4 5 resource "aws_internet_gateway" "main" { 6 vpc_id = "${aws_vpc.main.id}" 7 }