diff --git a/README.md b/README.md index f79184e..c9a4367 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ You can find a more complete example that uses this module but also includes set | [ui\_static\_container\_image](#input\_ui\_static\_container\_image) | Container image for the UI frontend app | `string` | `""` | no | | [vpc\_cidr\_blocks](#input\_vpc\_cidr\_blocks) | The VPC CIDR blocks that we'll access list on our Metadata Service API to allow all internal communications | `list(string)` | n/a | yes | | [vpc\_id](#input\_vpc\_id) | The id of the single VPC we stood up for all Metaflow resources to exist in. | `string` | n/a | yes | +| [with\_public\_ip](#input\_with\_public\_ip) | Use public IP in case if Metadata Service uses public subnets (by defualt private subnets are used). | `bool` | `false` | no | ## Outputs diff --git a/main.tf b/main.tf index cec01f5..918ab59 100644 --- a/main.tf +++ b/main.tf @@ -33,6 +33,7 @@ module "metaflow-metadata-service" { subnet1_id = var.subnet1_id subnet2_id = var.subnet2_id vpc_cidr_blocks = var.vpc_cidr_blocks + with_public_ip = var.with_public_ip standard_tags = var.tags } diff --git a/variables.tf b/variables.tf index 049cb9b..3cf03e4 100644 --- a/variables.tf +++ b/variables.tf @@ -159,3 +159,9 @@ variable "extra_ui_static_env_vars" { default = {} description = "Additional environment variables for UI static app" } + +variable "with_public_ip" { + type = bool + default = false + description = "Enable public IP assignment for the Metadata Service" +}