FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

aws_vpc

Provides an VPC resource.

Example Usage

Basic usage:

resource "aws_vpc" "main" {
    cidr_block = "10.0.0.0/16"
}

Basic usage with tags:

resource "aws_vpc" "main" {
	cidr_block = "10.0.0.0/16"
	instance_tenancy = "dedicated"

	tags {
		Name = "main"
	}
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

VPCs can be imported using the vpc id, e.g.

$ terraform import aws_vpc.test_vpc vpc-a01106c2

See the source of this document at Terraform.io