You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs Update - default value for with_public_ip and export outputs from metaflow module (#69)
* Docs update - set default value for with_public_ip in README
* Docs Update - export outputs from metaflow modules in minmal examples
This change exports all outputs from the metaflow module which are values needed to configure metaflow.
---------
Co-authored-by: Joseph Sirak <joseph@outerbounds.co>
Copy file name to clipboardExpand all lines: README.md
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,10 @@ This module consists of submodules that can be used separately as well:
14
14
15
15

16
16
17
-
You can either use this high-level module, or submodules individually. See each module's corresponding `README.md` for more details.
17
+
You can either use this high-level module, or submodules individually. See each submodule's corresponding `README.md` for more details.
18
18
19
19
Here's a minimal end-to-end example of using this module with VPC:
20
+
20
21
```terraform
21
22
# Random suffix for this deployment
22
23
resource "random_string" "suffix" {
@@ -63,21 +64,26 @@ module "metaflow" {
63
64
subnet2_id = module.vpc.public_subnets[1]
64
65
vpc_cidr_blocks = module.vpc.vpc_cidr_blocks
65
66
vpc_id = module.vpc.vpc_id
66
-
with_public_ip = var.with_public_ip
67
+
with_public_ip = true
67
68
68
69
tags = {
69
70
"managedBy" = "terraform"
70
71
}
71
72
}
72
73
74
+
# export all outputs from metaflow modules
75
+
output "metaflow" {
76
+
value = module.metaflow
77
+
}
78
+
73
79
# The module will generate a Metaflow config in JSON format, write it to a file
74
80
resource "local_file" "metaflow_config" {
75
81
content = module.metaflow.metaflow_profile_json
76
82
filename = "./metaflow_profile.json"
77
83
}
78
84
```
79
85
80
-
You can find a more complete example that uses this module but also includes setting up sagemaker notebooks and other non-Metaflow-specific parts of infra [in this repo](https://github.com/outerbounds/metaflow-tools/tree/master/aws/terraform).
86
+
**Note:**You can find a more complete example that uses this module but also includes setting up sagemaker notebooks and other non-Metaflow-specific parts of infra [in this repo](https://github.com/outerbounds/metaflow-tools/tree/master/aws/terraform).
81
87
82
88
<!-- BEGIN_TF_DOCS -->
83
89
## Modules
@@ -125,7 +131,7 @@ You can find a more complete example that uses this module but also includes set
125
131
| <aname="input_ui_static_container_image"></a> [ui\_static\_container\_image](#input\_ui\_static\_container\_image)| Container image for the UI frontend app |`string`|`""`| no |
126
132
| <aname="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 |
127
133
| <aname="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 |
128
-
| <aname="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`| n/a | yes |
134
+
| <aname="input_with_public_ip"></a> [with\_public\_ip](#input\_with\_public\_ip)| Enable public IP assignment for the Metadata Service. If the subnets specified for subnet1\_id and subnet2\_id are public subnets, you will NEED to set this to true to allow pulling container images from public registries. Otherwise this should be set to false.|`bool`| n/a | yes |
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"
171
+
description="Enable public IP assignment for the Metadata Service. If the subnets specified for subnet1_id and subnet2_id are public subnets, you will NEED to set this to true to allow pulling container images from public registries. Otherwise this should be set to false."
0 commit comments