-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot ignore_changes on specific tags on objects like nsxt_policysegment #820
Comments
Thanks for reporting this issue! We are considering provider-wide definition of tag scopes that should be ignored by terraform. We'd appreciate your feedback on this - is this a good enough solution for your use case? Thank you! |
For me, that would be enough. I really just want the ability to specify a scope string that will cause any tags with that string to be ignored on updates. Thanks. |
I have exactly the same issue and would like to have the possibility to ignore specific tag scopes. |
Thanks for the feedback @RussPitcher and @benzander. We looking into prioritizing this. |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
Any News? We still need a feature to ignore specific tags. :-) |
sorry it takes so long @benzander. I'll check if we can accommodate this for |
@annakhm: The reason why we need it for tags is the Cloud Director Integration. I create objects with the NSX TF Provider and set tags to them. Then I import those to VMware Cloud Director and vCD adds its own tags which NSX-T TF Provider wants to remove later. I like the Idea to have such a feature generic. We could also replace a tag specific ignore feature against a generic feature later if you still want to do it that way. |
Hi @RussPitcher, @benzander - it would help us to identify a list of objects where this feature is relevant. |
I noticed this conflict between NSX-T TF Provider and vCD only with segments. |
Is your feature request related to a problem? Please describe.
We are using tags extensively on our segments to help us programatically find them based on known values. In our terraform code we specify a number of tag scope/value pairs. This works fine until we create an external network in vCloud Director using an NSXT segment. VCD adds a new tag to the NSXT segment with the ID of the external network, presumably to locate the correct segment as we are doing. Unfortunately this means that Terraform them tries to remove the tag that VCD added when we perform another apply. Whilst we can ignore_changes on all tags, we need the ability to change tags in the future.
Describe the solution you'd like
We would like the option to ignore_changes on individual tag scopes. For example:
To ignore changes on a tag with a scope of "SYSTEM" perhaps we could have something like this.
lifecycle {
ignore_changes = {
tag["SYSTEM"]
}
}
This should also allow for the fact that tags specified in the ignore_changes block may not exist in the terraform config. The main aim is for the ability to ignore certain tags that may be managed outside of terraform.
Describe alternatives you've considered
Currently I'm thinking of running a -refresh-only immediately after the apply, them parsing the state file to look for new "SYSTEM" scoped tags and then adding that tag back into the config. Although I can see a number of probable issues with that approach.
Additional context
No response
The text was updated successfully, but these errors were encountered: