Skip to content

Commit 11771fe

Browse files
author
Andrei Nechaev
authored
expose with_public_ip var of metadata service (#42)
* expose with_public_ip var of metadata service * add readme description * new line to conform with linter
1 parent 9d1acdd commit 11771fe

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ You can find a more complete example that uses this module but also includes set
122122
| <a name="input_ui_static_container_image"></a> [ui\_static\_container\_image](#input\_ui\_static\_container\_image) | Container image for the UI frontend app | `string` | `""` | no |
123123
| <a name="input_vpc_cidr_blocks"></a> [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 |
124124
| <a name="input_vpc_id"></a> [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 |
125+
| <a name="with_public_ip"></a> [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 |
125126

126127
## Outputs
127128

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module "metaflow-metadata-service" {
3333
subnet1_id = var.subnet1_id
3434
subnet2_id = var.subnet2_id
3535
vpc_cidr_blocks = var.vpc_cidr_blocks
36+
with_public_ip = var.with_public_ip
3637

3738
standard_tags = var.tags
3839
}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,9 @@ variable "extra_ui_static_env_vars" {
159159
default = {}
160160
description = "Additional environment variables for UI static app"
161161
}
162+
163+
variable "with_public_ip" {
164+
type = bool
165+
default = false
166+
description = "Enable public IP assignment for the Metadata Service"
167+
}

0 commit comments

Comments
 (0)