hashicorp / terraform-google-consul

A Terraform Module for how to run Consul on Google Cloud using Terraform and Packer
Apache License 2.0
94 stars 90 forks source link

network vs subnetwork in the instance_template #4

Closed apenney closed 6 years ago

apenney commented 6 years ago

Hi,

Not sure of the best way to handle this in Terraform. We have a custom network which means the template consul_server_private breaks in:

network_interface { network = "${var.network_name}" }

And needs to be changed to a subnetwork. Is there a good pattern to handle this?

josh-padnick commented 6 years ago

Looks like we may be missing a param that allows you to pass in a subnetwork instead of a network! PRs welcome on this!