Skip to content

Commit

Permalink
Merge pull request #5 from reactiveops/do/add-description-variable
Browse files Browse the repository at this point in the history
adding network_description variable, bumping version to 1.0.1
  • Loading branch information
dosullivan authored Mar 29, 2019
2 parents 89d42b7 + 4f5c7d1 commit b3b0699
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 8 additions & 1 deletion default/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [next version]
## 1.0.1

### deprecations

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

* There are new `network_self_link` and `subnetwork_self_link` outputs.
* 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.

## 1.0.0

## Added

* Initial release of the `default` module, which features public networking and VPC-native functionality.
6 changes: 6 additions & 0 deletions default/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,18 @@ variable "enable_flow_logs" {
description = "whether to turn on flow logs or not"
}

variable "network_description" {
default = ""
description = "a description for the VPC in the GCP Console"
}

#######################
# Create the network and subnetworks, including secondary IP ranges on subnetworks
#######################

resource "google_compute_network" "network" {
name = "${var.network_name}"
description = "${var.network_description}"
routing_mode = "GLOBAL"
auto_create_subnetworks = "false"
}
Expand Down

0 comments on commit b3b0699

Please sign in to comment.