Remove all terraform=true hardcoded tags#65
Conversation
There was a problem hiding this comment.
which terraform version comes with the default_tags - can we make it retro-compatible?
leaving tags variable defined and we can send an empty value in case it is needed
is it worth?
variable "tags" {
description = "Map of tags that will be added to created resources. By default resources will be tagged with terraform=true."
type = map(string)
default = {
"Terraform" = true
}
}
@adenot what do you think?
yes, adding the default for |
|
@adenot @Renatovnctavares done, can you review again? |
Terraform errors if the
default_tagsblock have the same tag as the tags on a resource.A better way to manage this is to put all tags on the
default_tagsblock, and pass tags specific to modules on the tags variableTypes of changes
What types of changes does your code introduce to <repo_name>?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...