github.com/emc-cmd/terraform@v0.7.8-0.20161101145618-f16309630e7c/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  }