Skip to content

Commit 47cff65

Browse files
authored
Update with_public_ip description and examples (#44)
* Fix linting error * Change description, example * Change description for metadata service * Change minimal example * Change other 2 examples * Bump version
1 parent 11771fe commit 47cff65

File tree

7 files changed

+15
-11
lines changed

7 files changed

+15
-11
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ module "metaflow" {
6363
subnet2_id = module.vpc.public_subnets[1]
6464
vpc_cidr_blocks = module.vpc.vpc_cidr_blocks
6565
vpc_id = module.vpc.vpc_id
66+
with_public_ip = var.with_public_ip
6667
6768
tags = {
6869
"managedBy" = "terraform"
@@ -122,7 +123,7 @@ You can find a more complete example that uses this module but also includes set
122123
| <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 |
123124
| <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 |
124125
| <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 |
126+
| <a name="input_with_public_ip"></a> [with\_public\_ip](#input\_with\_public\_ip) | Enable public IP assignment for the Metadata Service. Typically you want this to be set to true if using public subnets as subnet1\_id and subnet2\_id, and false otherwise | `bool` | `false` | no |
126127

127128
## Outputs
128129

examples/eks_airflow/metaflow.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ data "aws_availability_zones" "available" {
2020

2121
module "metaflow-datastore" {
2222
source = "outerbounds/metaflow/aws//modules/datastore"
23-
version = "0.7.1"
23+
version = "0.8.0"
2424

2525
force_destroy_s3_bucket = true
2626

@@ -37,12 +37,12 @@ module "metaflow-datastore" {
3737

3838
module "metaflow-common" {
3939
source = "outerbounds/metaflow/aws//modules/common"
40-
version = "0.7.1"
40+
version = "0.8.0"
4141
}
4242

4343
module "metaflow-metadata-service" {
4444
source = "outerbounds/metaflow/aws//modules/metadata-service"
45-
version = "0.7.1"
45+
version = "0.8.0"
4646

4747
resource_prefix = local.resource_prefix
4848
resource_suffix = local.resource_suffix
@@ -61,6 +61,7 @@ module "metaflow-metadata-service" {
6161
subnet1_id = module.vpc.private_subnets[0]
6262
subnet2_id = module.vpc.private_subnets[1]
6363
vpc_cidr_blocks = [module.vpc.vpc_cidr_block]
64+
with_public_ip = var.with_public_ip
6465

6566
standard_tags = local.tags
6667
}

examples/eks_argo/metaflow.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ data "aws_availability_zones" "available" {
2020

2121
module "metaflow-datastore" {
2222
source = "outerbounds/metaflow/aws//modules/datastore"
23-
version = "0.7.1"
23+
version = "0.8.0"
2424

2525
force_destroy_s3_bucket = true
2626

@@ -37,12 +37,12 @@ module "metaflow-datastore" {
3737

3838
module "metaflow-common" {
3939
source = "outerbounds/metaflow/aws//modules/common"
40-
version = "0.7.1"
40+
version = "0.8.0"
4141
}
4242

4343
module "metaflow-metadata-service" {
4444
source = "outerbounds/metaflow/aws//modules/metadata-service"
45-
version = "0.7.1"
45+
version = "0.8.0"
4646

4747
resource_prefix = local.resource_prefix
4848
resource_suffix = local.resource_suffix
@@ -61,6 +61,7 @@ module "metaflow-metadata-service" {
6161
subnet1_id = module.vpc.private_subnets[0]
6262
subnet2_id = module.vpc.private_subnets[1]
6363
vpc_cidr_blocks = [module.vpc.vpc_cidr_block]
64+
with_public_ip = var.with_public_ip
6465

6566
standard_tags = local.tags
6667
}

examples/minimal/minimal_example.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module "vpc" {
3838

3939
module "metaflow" {
4040
source = "outerbounds/metaflow/aws"
41-
version = "0.7.0"
41+
version = "0.8.0"
4242

4343
resource_prefix = local.resource_prefix
4444
resource_suffix = local.resource_suffix
@@ -48,6 +48,7 @@ module "metaflow" {
4848
subnet2_id = module.vpc.public_subnets[1]
4949
vpc_cidr_blocks = [module.vpc.vpc_cidr_block]
5050
vpc_id = module.vpc.vpc_id
51+
with_public_ip = var.with_public_ip
5152

5253
tags = {
5354
"managedBy" = "terraform"

modules/metadata-service/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ If the `access_list_cidr_blocks` variable is set, only traffic originating from
3636
| <a name="input_subnet1_id"></a> [subnet1\_id](#input\_subnet1\_id) | First private subnet used for availability zone redundancy | `string` | n/a | yes |
3737
| <a name="input_subnet2_id"></a> [subnet2\_id](#input\_subnet2\_id) | Second private subnet used for availability zone redundancy | `string` | n/a | yes |
3838
| <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 |
39-
| <a name="input_with_public_ip"></a> [with\_public\_ip](#input\_with\_public\_ip) | Enable private IP by default | `bool` | `false` | no |
39+
| <a name="input_with_public_ip"></a> [with\_public\_ip](#input\_with\_public\_ip) | Enable public IP assignment for the Metadata Service. Typically you want this to be set to true if using public subnets as subnet1\_id and subnet2\_id, and false otherwise | `bool` | `false` | no |
4040

4141
## Outputs
4242

modules/metadata-service/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ variable "vpc_cidr_blocks" {
113113
variable "with_public_ip" {
114114
type = bool
115115
default = false
116-
description = "Enable private IP by default"
116+
description = "Enable public IP assignment for the Metadata Service. Typically you want this to be set to true if using public subnets as subnet1_id and subnet2_id, and false otherwise"
117117
}

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,5 @@ variable "extra_ui_static_env_vars" {
163163
variable "with_public_ip" {
164164
type = bool
165165
default = false
166-
description = "Enable public IP assignment for the Metadata Service"
166+
description = "Enable public IP assignment for the Metadata Service. Typically you want this to be set to true if using public subnets as subnet1_id and subnet2_id, and false otherwise"
167167
}

0 commit comments

Comments
 (0)