Skip to content

Commit 0dc6965

Browse files
authored
feat: add network output (#169)
1 parent 9b6a4c8 commit 0dc6965

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Then perform the following commands on the root folder:
109109

110110
| Name | Description |
111111
|------|-------------|
112+
| network | The created network |
112113
| network\_name | The name of the VPC being created |
113114
| network\_self\_link | The URI of the VPC being created |
114115
| project\_id | VPC project id |

outputs.tf

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
* limitations under the License.
1515
*/
1616

17+
output "network" {
18+
value = module.vpc
19+
description = "The created network"
20+
}
21+
22+
output "subnets" {
23+
value = module.subnets.subnets
24+
description = "A map with keys of form subnet_region/subnet_name and values being the outputs of the google_compute_subnetwork resources used to create corresponding subnets."
25+
}
26+
1727
output "network_name" {
1828
value = module.vpc.network_name
1929
description = "The name of the VPC being created"
@@ -68,8 +78,3 @@ output "route_names" {
6878
value = [for route in module.routes.routes : route.name]
6979
description = "The route names associated with this VPC"
7080
}
71-
72-
output "subnets" {
73-
value = module.subnets.subnets
74-
description = "A map with keys of form subnet_region/subnet_name and values being the outputs of the google_compute_subnetwork resources used to create corresponding subnets."
75-
}

0 commit comments

Comments
 (0)