-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Fix issues in Cloudwatch Log Group tag #14886
Fix issues in Cloudwatch Log Group tag #14886
Conversation
1) Removing tags from terraform doesn’t actually get removed in AWS 2) Trying to update a tag with empty value (“”) to a non-empty value causes terraform to loop forever The issue was caused by a mixup of using tag values where tag name should have used and is corrected in this patch. This patch also removes the comparison of old and new tag values, because AWS api takes care of updates by itself and there is no need to perform an unnecessary UnTag API to update an existing tag value
Thanks for the work here - please can you include an acceptance test to demonstrate the issue has been fixeD? Thanks Paul |
https://gist.github.com/johnthedev97/17c22380ea3dc0110579cbba6c145c32 Is that enough? Oe are you looking for something different? |
If what I have provided is not enough, please guide me on what needs to be done to get this merged? |
Thanks for showing me the output from your tests. What I mean is, there will be a file called In that file, you will see acceptance tests that show different scenarios we run through nightly or on feature changes. Ideally, it would be really nice to run those tests (at the minimum) to include the output in your PR description. Even better would be to show that the work you have done actually fixes the bug you found to run the tests, you can then run the command:
Hope this helps Paul |
Ok, Thanks for the info. Sorry this was my first commit. terraform dev$ make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSCloudWatchLogGroup_tagging' |
@stack72 hope the above details are up to your expectations |
This LGTM! Thanks for this :) Paul |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
The issue was caused by a mixup of using tag values where tag name
should have used and is corrected in this patch.
This patch also removes the comparison of old and new tag values,
because AWS api takes care of updates by itself and there is no need to
perform an unnecessary UnTag API to update an existing tag value