» openstack_networking_floatingip_v2

Manages a V2 floating IP resource within OpenStack Neutron (networking) that can be used for load balancers. These are similar to Nova (compute) floating IP resources, but only compute floating IPs can be used with compute instances.

» Example Usage

resource "openstack_networking_floatingip_v2" "floatip_1" {
  pool = "public"

» Argument Reference

The following arguments are supported:

  • region - (Optional) The region in which to obtain the V2 Networking client. A Networking client is needed to create a floating IP that can be used with another networking resource, such as a load balancer. If omitted, the region argument of the provider is used. Changing this creates a new floating IP (which may or may not have a different address).

  • description - (Optional) Human-readable description for the floating IP.

  • pool - (Required) The name of the pool from which to obtain the floating IP. Changing this creates a new floating IP.

  • port_id - (Optional) ID of an existing port with at least one IP address to associate with this floating IP.

  • tenant_id - (Optional) The target tenant ID in which to allocate the floating IP, if you specify this together with a port_id, make sure the target port belongs to the same tenant. Changing this creates a new floating IP (which may or may not have a different address)

  • address - (Optional) The actual/specific floating IP to obtain. By default, non-admin users are not able to specify a floating IP, so you must either be an admin user or have had a custom policy or role applied to your OpenStack user or project.

  • fixed_ip - Fixed IP of the port to associate with this floating IP. Required if the port has multiple fixed IPs.

  • subnet_id - (Optional) The subnet ID of the floating IP pool. Specify this if the floating IP network has multiple subnets.

  • value_specs - (Optional) Map of additional options.

  • tags - (Optional) A set of string tags for the floating IP.

» Attributes Reference

The following attributes are exported:

  • region - See Argument Reference above.
  • description - See Argument Reference above.
  • pool - See Argument Reference above.
  • address - The actual floating IP address itself.
  • port_id - ID of associated port.
  • tenant_id - the ID of the tenant in which to create the floating IP.
  • fixed_ip - The fixed IP which the floating IP maps to.
  • tags - See Argument Reference above.
  • all_tags - The collection of tags assigned on the floating IP, which have been explicitly and implicitly added.

» Import

Floating IPs can be imported using the id, e.g.

$ terraform import openstack_networking_floatingip_v2.floatip_1 2c7f39f3-702b-48d1-940c-b50384177ee1