hashicorp / terraform-aws-consul

A Terraform Module for how to run Consul on AWS using Terraform and Packer
Apache License 2.0
401 stars 484 forks source link

Add Name tag to Consul Security Group #56

Closed joshmyers closed 6 years ago

joshmyers commented 6 years ago

When using this module to create a stand alone Consul cluster, it is helpful to be able to use a data source to import the SG in order to configure other modules. e.g. a separate Nomad cluster module with its own TF state to add an SG rule to allow the Nomad clients, also Consul clients, to talk to the main Consul server SG.

Because we only give a name_prefix to this SG group currently, there is no way to use a data source to import based on name. Passing around terraform outputs for this type of thing is a faff due to setup and separate state.

brikis98 commented 6 years ago

https://github.com/hashicorp/terraform-aws-consul/releases/tag/v0.3.1