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: README.md
+14-15Lines changed: 14 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,17 @@ It supports creating:
8
8
- Subnets within the VPC
9
9
- Secondary ranges for the subnets (if applicable)
10
10
11
+
## Compatibility
12
+
13
+
This module is meant for use with Terraform 0.12. If you haven't [upgraded](https://www.terraform.io/upgrade-guides/0-12.html) and need a Terraform 0.11.x-compatible version of this module, the last released version intended for Terraform 0.11.x is [0.8.0](https://registry.terraform.io/modules/terraform-google-modules/network/google/0.8.0).
14
+
11
15
## Usage
12
16
You can go to the examples folder, however the usage of the module could be like this in your own main.tf file:
@@ -73,20 +77,19 @@ Then perform the following commands on the root folder:
73
77
-`terraform apply` to apply the infrastructure build
74
78
-`terraform destroy` to destroy the built infrastructure
75
79
76
-
[^]: (autogen_docs_start)
77
-
80
+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
78
81
## Inputs
79
82
80
83
| Name | Description | Type | Default | Required |
81
84
|------|-------------|:----:|:-----:|:-----:|
82
85
| 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 | string |`"false"`| no |
83
86
| network\_name | The name of the network being created | string | n/a | yes |
84
87
| project\_id | The ID of the project where this VPC will be created | string | n/a | yes |
85
-
| routes | List of routes being created in this VPC | list |`<list>`| no |
88
+
| routes | List of routes being created in this VPC | list(map(string))|`<list>`| no |
86
89
| routing\_mode | The network routing mode (default 'GLOBAL') | string |`"GLOBAL"`| no |
87
-
| secondary\_ranges | Secondary ranges that will be used in some of the subnets |map| n/a | yes |
90
+
| secondary\_ranges | Secondary ranges that will be used in some of the subnets |object| n/a | yes |
88
91
| shared\_vpc\_host | Makes this project a Shared VPC host if 'true' (default 'false') | string |`"false"`| no |
89
-
| subnets | The list of subnets being created | list | n/a | yes |
92
+
| subnets | The list of subnets being created | list(map(string))| n/a | yes |
90
93
91
94
## Outputs
92
95
@@ -104,7 +107,7 @@ Then perform the following commands on the root folder:
104
107
| subnets\_self\_links | The self-links of subnets being created |
The subnets list contains maps, where each object represents a subnet. Each map has the following inputs (please see examples folder for additional references):
@@ -135,8 +138,8 @@ The routes list contains maps, where each object represents a route. For the nex
0 commit comments