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
Copy file name to clipboardExpand all lines: modules/network/multivpc/README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,8 @@ limitations under the License.
103
103
| <aname="input_allowed_ssh_ip_ranges"></a> [allowed\_ssh\_ip\_ranges](#input\_allowed\_ssh\_ip\_ranges)| A list of CIDR IP ranges from which to allow ssh access |`list(string)`|`[]`| no |
104
104
| <aname="input_delete_default_internet_gateway_routes"></a> [delete\_default\_internet\_gateway\_routes](#input\_delete\_default\_internet\_gateway\_routes)| If set, ensure that all routes within the network specified whose names begin with 'default-route' and with a next hop of 'default-internet-gateway' are deleted |`bool`|`false`| no |
105
105
| <aname="input_deployment_name"></a> [deployment\_name](#input\_deployment\_name)| The name of the current deployment |`string`| n/a | yes |
106
+
| <aname="input_enable_cloud_nat"></a> [enable\_cloud\_nat](#input\_enable\_cloud\_nat)| Enable the creation of Cloud NATs. |`bool`|`true`| no |
107
+
| <aname="input_enable_cloud_router"></a> [enable\_cloud\_router](#input\_enable\_cloud\_router)| Enable the creation of a Cloud Router for your VPC. For more information on Cloud Routers see https://cloud.google.com/network-connectivity/docs/router/concepts/overview|`bool`|`true`| no |
106
108
| <aname="input_enable_iap_rdp_ingress"></a> [enable\_iap\_rdp\_ingress](#input\_enable\_iap\_rdp\_ingress)| Enable a firewall rule to allow Windows Remote Desktop Protocol access using IAP tunnels |`bool`|`false`| no |
107
109
| <aname="input_enable_iap_ssh_ingress"></a> [enable\_iap\_ssh\_ingress](#input\_enable\_iap\_ssh\_ingress)| Enable a firewall rule to allow SSH access using IAP tunnels |`bool`|`true`| no |
108
110
| <aname="input_enable_iap_winrm_ingress"></a> [enable\_iap\_winrm\_ingress](#input\_enable\_iap\_winrm\_ingress)| Enable a firewall rule to allow Windows Remote Management (WinRM) access using IAP tunnels |`bool`|`false`| no |
@@ -121,6 +123,7 @@ limitations under the License.
121
123
| <aname="input_project_id"></a> [project\_id](#input\_project\_id)| Project in which the HPC deployment will be created |`string`| n/a | yes |
122
124
| <aname="input_region"></a> [region](#input\_region)| The default region for Cloud resources |`string`| n/a | yes |
123
125
| <aname="input_subnetwork_cidr_suffix"></a> [subnetwork\_cidr\_suffix](#input\_subnetwork\_cidr\_suffix)| The size, in CIDR suffix notation, for each network (e.g. 24 for 172.16.0.0/24); changing this will destroy every network. |`number`|`16`| no |
126
+
| <aname="input_subnetwork_private_access"></a> [subnetwork\_private\_access](#input\_subnetwork\_private\_access)| Enable Private Google Access on the subnetworks |`bool`|`true`| no |
Copy file name to clipboardExpand all lines: modules/network/multivpc/variables.tf
+18-4Lines changed: 18 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,6 @@ variable "network_count" {
40
40
type=number
41
41
default=4
42
42
43
-
validation {
44
-
condition=var.network_count>1
45
-
error_message="The minimum VPCs able to be created by this module is 2. Use the standard Toolkit module at modules/network/vpc for count = 1"
46
-
}
47
43
validation {
48
44
condition=var.network_count<=8
49
45
error_message="The maximum VPCs able to be created by this module is 8"
@@ -199,3 +195,21 @@ variable "network_profile" {
199
195
EOT
200
196
default=null
201
197
}
198
+
199
+
variable"enable_cloud_router" {
200
+
type=bool
201
+
description="Enable the creation of a Cloud Router for your VPC. For more information on Cloud Routers see https://cloud.google.com/network-connectivity/docs/router/concepts/overview"
202
+
default=true
203
+
}
204
+
205
+
variable"enable_cloud_nat" {
206
+
type=bool
207
+
description="Enable the creation of Cloud NATs."
208
+
default=true
209
+
}
210
+
211
+
variable"subnetwork_private_access" {
212
+
type=bool
213
+
description="Enable Private Google Access on the subnetworks"
Copy file name to clipboardExpand all lines: modules/network/vpc/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,6 +220,7 @@ limitations under the License.
220
220
| <a name="input_secondary_ranges_list"></a> [secondary\_ranges\_list](#input\_secondary\_ranges\_list) | "List of secondary ranges associated with the subnetworks.<br/>Each subnetwork must be specified at most once in this list." | <pre>list(object({<br/> subnetwork_name = string,<br/> ranges = list(object({<br/> range_name = string,<br/> ip_cidr_range = string<br/> }))<br/> }))</pre> | `[]` | no |
221
221
| <a name="input_shared_vpc_host"></a> [shared\_vpc\_host](#input\_shared\_vpc\_host) | Makes this project a Shared VPC host if 'true' (default 'false') | `bool` | `false` | no |
222
222
| <a name="input_subnetwork_name"></a> [subnetwork\_name](#input\_subnetwork\_name) | The name of the network to be created (if unsupplied, will default to "{deployment\_name}-primary-subnet") | `string` | `null` | no |
223
+
| <a name="input_subnetwork_private_access"></a> [subnetwork\_private\_access](#input\_subnetwork\_private\_access) | Enable Private Google Access on the subnetworks | `bool` | `true` | no |
223
224
| <a name="input_subnetwork_size"></a> [subnetwork\_size](#input\_subnetwork\_size) | DEPRECATED: please see https://goo.gle/hpc-toolkit-vpc-deprecation for migration instructions | `number` | `null` | no |
224
225
| <a name="input_subnetworks"></a> [subnetworks](#input\_subnetworks) | List of subnetworks to create within the VPC. If left empty, it will be<br/>replaced by a single, default subnetwork constructed from other parameters<br/>(e.g. var.region). In all cases, the first subnetwork in the list is identified<br/>by outputs as a "primary" subnetwork.<br/><br/>subnet\_name (string, required, name of subnet)<br/>subnet\_region (string, required, region of subnet)<br/>subnet\_ip (string, mutually exclusive with new\_bits, CIDR-formatted IP range for subnetwork)<br/>new\_bits (number, mutually exclusive with subnet\_ip, CIDR bits used to calculate subnetwork range)<br/>subnet\_private\_access (bool, optional, Enable Private Access on subnetwork)<br/>subnet\_flow\_logs (map(string), optional, Configure Flow Logs see terraform-google-network module)<br/>description (string, optional, Description of Network)<br/>purpose (string, optional, related to Load Balancing)<br/>role (string, optional, related to Load Balancing) | `list(map(string))` | `[]` | no |
0 commit comments