Skip to content

Commit b3b0699

Browse files
authored
Merge pull request #5 from reactiveops/do/add-description-variable
adding network_description variable, bumping version to 1.0.1
2 parents 89d42b7 + 4f5c7d1 commit b3b0699

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

default/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [next version]
7+
## 1.0.1
88

99
### deprecations
1010

@@ -13,3 +13,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1313
### Added
1414

1515
* There are new `network_self_link` and `subnetwork_self_link` outputs.
16+
* A network_description variable has been added, which is used as an argument to provide a description on `google_compute_network`. This is optional and defaults to null.
17+
18+
## 1.0.0
19+
20+
## Added
21+
22+
* Initial release of the `default` module, which features public networking and VPC-native functionality.

default/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@ variable "enable_flow_logs" {
3030
description = "whether to turn on flow logs or not"
3131
}
3232

33+
variable "network_description" {
34+
default = ""
35+
description = "a description for the VPC in the GCP Console"
36+
}
37+
3338
#######################
3439
# Create the network and subnetworks, including secondary IP ranges on subnetworks
3540
#######################
3641

3742
resource "google_compute_network" "network" {
3843
name = "${var.network_name}"
44+
description = "${var.network_description}"
3945
routing_mode = "GLOBAL"
4046
auto_create_subnetworks = "false"
4147
}

0 commit comments

Comments
 (0)