This module is used to create a Public Gateway
data "ibm_is_vpc" "vpc" {
name = var.vpc
}
data "ibm_resource_group" "resource_group" {
name = (var.resource_group != null ? var.resource_group : "default")
}
module "public_gateway" {
source = "terraform-ibm-modules/vpc/ibm//modules/public-gateway"
name = var.name
vpc_id = data.ibm_is_vpc.vpc.id
resource_group_id = data.ibm_resource_group.resource_group.id
location = var.location
floating_ip = var.floating_ip
tags = var.tags
}
Name | Version |
---|---|
terraform | >= 1.3.0 |
ibm | >= 1.64.0, <2.0.0 |
No modules.
Name | Type |
---|---|
ibm_is_public_gateway.pgw | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
floating_ip | Floating IP id 's or address 'es that you want to assign to the public gateway |
map(any) |
{} |
no |
location | location of the Public Gateway | string |
n/a | yes |
name | Name of the Public Gateway | string |
n/a | yes |
resource_group_id | Resource group ID | string |
null |
no |
tags | List of Tags for the Public Gateway | list(string) |
null |
no |
vpc_id | VPC ID | string |
n/a | yes |
Name | Description |
---|---|
public_gateway_id | The ID of the Public Gateway |