Repository navigation
Conversation
Using var.environemnt to tag all resources with a key named `Environment` is incompatible with some organization's tagging policies. Added the tag_with_environment_var boolean variable to add this tag to resources conditionally. By default this is set to true for less disruption when updating the module
Only create the AWS Resource Group based on the Enviornment tag if we are applying that tag to all resources. Otherwise the Resource Group will be empty
|
Ahh that's a shame. I'm no great dev, but it looks to me as if the only place where the functions are using the Is your proposal that the tag key is made configurable within the Terraform code? If so, would it be correct to say that what needs doing is putting the configured tag key value in the parameter store and fetching that in the Lambda to be used when filtering EC2 instances by this tag? |
Thanks for taking the time, looking on the changed files. You miss several places. I would prefer:
|
Following discussion in #1280 here's an implementation of my suggested fix/workaround to make adding a tag for all resources with the key
EnvironmentconditionalSummary
Using
var.environmentto tag all resources with a key namedEnvironmentis incompatible with some organization'stagging policies.
Proposed solution
Add the
tag_with_environment_varboolean variable to indicate whether thevar.environmentvalue should be added to created resources. By default this is set to true for less disruption when updating the module.