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
The subnets list contains maps, where each object represents a subnet. Each map has the following inputs (please see examples folder for additional references):
88
84
89
-
| Name | Description | Type | Default | Required |
90
-
|------|-------------|:----:|:-----:|:-----:|
91
-
| subnet\_name | The name of the subnet being created | string | - | yes |
92
-
| subnet\_ip | The IP and CIDR range of the subnet being created | string | - | yes |
93
-
| subnet\_region | The region where the subnet will be created | string | - | yes |
94
-
| subnet\_private\_access | Whether this subnet will have private Google access enabled | string |`"false"`| no |
95
-
| subnet\_flow\_logs | Whether the subnet will record and send flow log data to logging | string |`"false"`| no |
85
+
| Name | Description | Type | Default | Required |
| subnet\_name | The name of the subnet being created | string | - | yes |
88
+
| subnet\_ip | The IP and CIDR range of the subnet being created | string | - | yes |
89
+
| subnet\_region | The region where the subnet will be created | string | - | yes |
90
+
| subnet\_private\_access | Whether this subnet will have private Google access enabled | string |`"false"`| no |
91
+
| subnet\_flow\_logs | Whether the subnet will record and send flow log data to logging | string |`"false"`| no |
92
+
| subnet\_flow\_logs\_interval | If subnet\_flow\_logs is true, sets the aggregation interval for collecting flow logs | string |`"INTERVAL_5_SEC"`| no |
93
+
| subnet\_flow\_logs\_sampling | If subnet\_flow\_logs is true, set the sampling rate of VPC flow logs within the subnetwork | string |`"0.5"`| no |
94
+
| subnet\_flow\_logs\_metadata | If subnet\_flow\_logs is true, configures whether metadata fields should be added to the reported VPC flow logs | string |`"INCLUDE_ALL_METADATA"`| no |
95
+
| subnet\_flow\_logs\_filter_expr | Export filter defining which VPC flow logs should be logged, see https://cloud.google.com/vpc/docs/flow-logs#filtering for formatting details | string |`"true"`| no |
96
+
| purpose | The purpose of the subnet usage. Whether it is to be used as a regular subnet or for proxy or loadbalacing purposes, see https://cloud.google.com/vpc/docs/subnets#purpose for more details | string |`"PRIVATE"`| no |
97
+
| role | The role of the subnet when using it as a proxy or loadbalancer network. Whether it is to be used as the active or as a backup subnet, see https://cloud.google.com/load-balancing/docs/proxy-only-subnets#proxy_only_subnet_create for more details | string | - | no |
Copy file name to clipboardExpand all lines: modules/subnets/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ module "vpc" {
31
31
subnet_private_access = "true"
32
32
subnet_flow_logs = "true"
33
33
description = "This subnet has a description"
34
+
purpose = "INTERNAL_HTTPS_LOAD_BALANCER"
35
+
role = "ACTIVE"
34
36
},
35
37
{
36
38
subnet_name = "subnet-03"
@@ -90,3 +92,5 @@ The subnets list contains maps, where each object represents a subnet. Each map
90
92
| subnet\_flow\_logs\_sampling | If subnet\_flow\_logs is true, set the sampling rate of VPC flow logs within the subnetwork | string |`"0.5"`| no |
91
93
| subnet\_flow\_logs\_metadata | If subnet\_flow\_logs is true, configures whether metadata fields should be added to the reported VPC flow logs | string |`"INCLUDE_ALL_METADATA"`| no |
92
94
| subnet\_flow\_logs\_filter_expr | Export filter defining which VPC flow logs should be logged, see https://cloud.google.com/vpc/docs/flow-logs#filtering for formatting details | string |`"true"`| no |
95
+
| purpose | The purpose of the subnet usage. Whether it is to be used as a regular subnet or for proxy or loadbalacing purposes, see https://cloud.google.com/vpc/docs/subnets#purpose for more details | string |`"PRIVATE"`| no |
96
+
| role | The role of the subnet when using it as a proxy or loadbalancer network. Whether it is to be used as the active or as a backup subnet, see https://cloud.google.com/load-balancing/docs/proxy-only-subnets#proxy_only_subnet_create for more details | string | - | no |
0 commit comments