From f4ff6c6470c59622d930eb377e8b4d6a007d30ab Mon Sep 17 00:00:00 2001 From: dosullivan Date: Thu, 28 Mar 2019 11:20:57 -0500 Subject: [PATCH 1/2] adding network_description variable, bumping version to 1.0.1, updated changelog --- default/CHANGELOG.md | 9 ++++++++- default/main.tf | 6 ++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/default/CHANGELOG.md b/default/CHANGELOG.md index 6cd4722..deae06b 100644 --- a/default/CHANGELOG.md +++ b/default/CHANGELOG.md @@ -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 @@ -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. \ No newline at end of file diff --git a/default/main.tf b/default/main.tf index 041ca1d..7daabe8 100644 --- a/default/main.tf +++ b/default/main.tf @@ -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.description}" routing_mode = "GLOBAL" auto_create_subnetworks = "false" } From 4f5c7d1749f66c9e6250d534123215b902c22166 Mon Sep 17 00:00:00 2001 From: dosullivan Date: Fri, 29 Mar 2019 09:23:10 -0500 Subject: [PATCH 2/2] line up vars --- default/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default/main.tf b/default/main.tf index 7daabe8..260d944 100644 --- a/default/main.tf +++ b/default/main.tf @@ -41,7 +41,7 @@ variable "network_description" { resource "google_compute_network" "network" { name = "${var.network_name}" - description = "${var.description}" + description = "${var.network_description}" routing_mode = "GLOBAL" auto_create_subnetworks = "false" }