github.com/hobbeswalsh/terraform@v0.3.7-0.20150619183303-ad17cf55a0fa/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 * `zone` - (Required) The name or ID of the zone where this disk volume will be 41 available. Changing this forces a new resource to be created. 42 43 ## Attributes Reference 44 45 The following attributes are exported: 46 47 * `id` - The ID of the VPC. 48 * `display_text` - The display text of the VPC.