-
Notifications
You must be signed in to change notification settings - Fork 465
Support tagged lookups on VPC & Subnets #38
Comments
Assuming that Terraform treats an empty |
:) NULL != 0 != "" != [] != {} :) |
Haha, yep. I even filed a bug about it: hashicorp/terraform#14037 |
#39 :) |
#39 Adds support for tagged lookups on the main "example", but not on the EDIT: I meant open a PR, as soon as I have one :) |
@patoarvizu vpc_id in the vault-cluster module is just a variable. It's up to the client depending on it as a module to set it. Either through a data lookup or similar. The main is an example implementation of how to do so. In theory, you could pass a set of filters or tags instead of the vpc_id but that starts to complicate the module. This way you can do any of the available options. |
For systems NOT using the default vpc (e.g. using the terraform vpc module), there are often public and private subnets created. This means 6 subnets 2 per AZ, which breaks this module. One thought is to add a variable
and modify main.tf to do
Then apply similar logic to the aws_vpc block
The text was updated successfully, but these errors were encountered: