github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/cloudstack/r/static_nat.html.markdown (about) 1 --- 2 layout: "cloudstack" 3 page_title: "CloudStack: cloudstack_static_nat" 4 sidebar_current: "docs-cloudstack-resource-static-nat" 5 description: |- 6 Enables static NAT for a given IP address. 7 --- 8 9 # cloudstack\_static\_nat 10 11 Enables static NAT for a given IP address 12 13 ## Example Usage 14 15 ``` 16 resource "cloudstack_static_nat" "default" { 17 ip_address_id = "f8141e2f-4e7e-4c63-9362-986c908b7ea7" 18 virtual_machine_id = "6ca2a163-bc68-429c-adc8-ab4a620b1bb3" 19 } 20 ``` 21 22 ## Argument Reference 23 24 The following arguments are supported: 25 26 * `ip_address_id` - (Required) The public IP address ID for which static 27 NAT will be enabled. Changing this forces a new resource to be created. 28 29 * `virtual_machine_id` - (Required) The virtual machine ID to enable the 30 static NAT feature for. Changing this forces a new resource to be created. 31 32 * `vm_guest_ip` - (Optional) The virtual machine IP address to forward the 33 static NAT traffic to (useful when the virtual machine has secondary 34 NICs or IP addresses). Changing this forces a new resource to be created. 35 36 * `project` - (Optional) The name or ID of the project to deploy this 37 instance to. Changing this forces a new resource to be created. 38 39 ## Attributes Reference 40 41 The following attributes are exported: 42 43 * `id` - The static nat ID. 44 * `vm_guest_ip` - The IP address of the virtual machine that is used 45 to forward the static NAT traffic to.