hashicorp / terraform-google-vault

A Terraform Module for how to run Vault on Google Cloud using Terraform and Packer
Apache License 2.0
113 stars 75 forks source link

Add subnetwork_name variable to vault_cluster module #21

Closed gfenn-newbury closed 5 years ago

gfenn-newbury commented 6 years ago

Related Issue: https://github.com/hashicorp/terraform-google-vault/issues/22

Add subnetwork_name variable to allow the use of non-default subnets, or subnets with custom names.

This change fixes a bug present when a subnet named default does not exist, or some other reason meaning a different subnet needs to be used:

* module.vault_cluster.google_compute_instance_template.vault_public: 1 error(s) occurred:

* google_compute_instance_template.vault_public: Error creating instance template: googleapi: Error 400: Invalid value for field 'resource.properties.networkInterfaces[0].subnetwork': ''. Network interface must specify a subnet if the network resource is in custom subnet mode., invalid