Open palmertime opened 7 years ago
Any update for this?
tags in meta-attribute will be useful for resource management by state, and it's will very helpful when we try to determine a resource belong to whichone, especially on a provider without tag-supported.
I think it is make sense to add a "_meta" section in a resource block, we could put meta-attributes, just like lifecycle/tags/timeouts in this section.
Feature Request
I'm interested in a new meta-parameter that can be used to define generic key/value pairs. Something like
generic_tags
orterraform_tags
. My use case is pertaining to utilizing Terraform state to provide Ansible with a dynamic inventory. The current apps that provide this functionality use Terraform resource provider specific parameters. For instance,aws_instance
referencetags
andvsphere_virtual_machine
referencecustom_configuration_parameters
to define Ansible parameters. This does work, however, has a few down sides. Specifically with vSphere, changing or adding acustom_configuration_parameters
will initiate a rebuild(destroy/create). This makes sense for the original intent ofcustom_configuration_parameters
but not for these type of generic tags or parameters.aws_instance
doesn't share this same issue, however, in both cases anytags
orcustom_configuration_parameters
are pushed up to AWS and vSphere. Again, not as big of deal as initiating a rebuild but not necessary.Terraform/Ansible dynamic inventory projects:
https://github.com/palmertime/terrible
https://github.com/sean-abbott/terraform.py
Another use case of terraform_tags might be to define parameters that
terraform plan -target
can take advantage.Terraform Version
0.10.2
Terraform Configuration Files