Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.86 KB

File metadata and controls

56 lines (41 loc) · 1.86 KB

Floating IP Module Example

This module is used to create a Floating IP

Example Usage


data "ibm_resource_group" "resource_group" {
  name = (var.resource_group != null ? var.resource_group : "default")
}

module "fip" {
  source = "terraform-ibm-modules/vpc/ibm//modules/floatingIP"

  name              = var.name
  resource_group_id = data.ibm_resource_group.resource_group.id
  location          = var.location
  target            = var.target
  tags              = var.tags
}

Requirements

Name Version
terraform >= 1.9.0
ibm >= 1.64.0, <2.0.0

Modules

No modules.

Resources

Name Type
ibm_is_floating_ip.fip resource

Inputs

Name Description Type Default Required
location Floating IP Zone string n/a yes
name Name of the Floating IP string n/a yes
resource_group_id Resource group ID string null no
tags List of Tags for the Floating IP list(string) null no
target Target Interface ID for this Floating IP string null no

Outputs

Name Description
floating_ip_id The ID of the Floating IP