github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/website/source/docs/providers/cloudstack/r/vpc.html.markdown (about) 1 --- 2 layout: "cloudstack" 3 page_title: "CloudStack: cloudstack_vpc" 4 sidebar_current: "docs-cloudstack-resource-vpc" 5 description: |- 6 Creates a VPC. 7 --- 8 9 # cloudstack\_vpc 10 11 Creates a VPC. 12 13 ## Example Usage 14 15 Basic usage: 16 17 ``` 18 resource "cloudstack_vpc" "default" { 19 name = "test-vpc" 20 cidr = "10.0.0.0/16" 21 vpc_offering = "Default VPC Offering" 22 zone = "zone-1" 23 } 24 ``` 25 26 ## Argument Reference 27 28 The following arguments are supported: 29 30 * `name` - (Required) The name of the VPC. 31 32 * `display_text` - (Optional) The display text of the VPC. 33 34 * `cidr` - (Required) The CIDR block for the VPC. Changing this forces a new 35 resource to be created. 36 37 * `vpc_offering` - (Required) The name or ID of the VPC offering to use for this VPC. 38 Changing this forces a new resource to be created. 39 40 * `project` - (Optional) The name or ID of the project to deploy this 41 instance to. Changing this forces a new resource to be created. 42 43 * `zone` - (Required) The name or ID of the zone where this disk volume will be 44 available. Changing this forces a new resource to be created. 45 46 ## Attributes Reference 47 48 The following attributes are exported: 49 50 * `id` - The ID of the VPC. 51 * `display_text` - The display text of the VPC. 52 * `source_nat_ip` - The source NAT IP assigned to the VPC.