Skip to content

Commit

Permalink
expose with_public_ip var of metadata service (#42)
Browse files Browse the repository at this point in the history
* expose with_public_ip var of metadata service

* add readme description

* new line to conform with linter
  • Loading branch information
Andrei Nechaev authored Nov 29, 2022
1 parent 9d1acdd commit 11771fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ You can find a more complete example that uses this module but also includes set
| <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 |
| <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 |
| <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 |
| <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 |

## Outputs

Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 11771fe

Please sign in to comment.