Files
opentf/website/source/docs/providers/cloudstack/r/static_nat.html.markdown
Sander van Harmelen 815c8840a7 Refactor the use of names vs IDs for parameters referencing other TF resources
We have a curtesy function in place allowing you to specify both a
`name` of `ID`. But in order for the graph to be build correctly when
you recreate or taint stuff that other resources depend on, we need to
reference the `ID` and *not* the `name`.

So in order to enforce this and by that help people to not make this
mistake unknowingly, I deprecated all the parameters this allies to and
changed the logic, docs and tests accordingly.
2016-04-11 17:14:28 +02:00

1.5 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
cloudstack CloudStack: cloudstack_static_nat docs-cloudstack-resource-static-nat Enables static NAT for a given IP address.

cloudstack_static_nat

Enables static NAT for a given IP address

Example Usage

resource "cloudstack_static_nat" "default" {
  ip_address_id = "f8141e2f-4e7e-4c63-9362-986c908b7ea7"
  virtual_machine_id = "6ca2a163-bc68-429c-adc8-ab4a620b1bb3"
}

Argument Reference

The following arguments are supported:

  • ip_address_id - (Required) The public IP address ID for which static NAT will be enabled. Changing this forces a new resource to be created.

  • network_id - (Optional) The network ID of the VM the static NAT will be enabled for. Required when public IP address is not associated with any guest network yet (VPC case). Changing this forces a new resource to be created.

  • virtual_machine_id - (Required) The virtual machine ID to enable the static NAT feature for. Changing this forces a new resource to be created.

  • vm_guest_ip - (Optional) The virtual machine IP address for the port forwarding rule (useful when the virtual machine has a secondairy NIC). Changing this forces a new resource to be created.

Attributes Reference

The following attributes are exported:

  • id - The static nat ID.
  • network - The network the public IP address is associated with.
  • vm_guest_ip - The IP address of the virtual machine that is used for the port forwarding rule.