-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
provider: Support default tags (resources aws_r*) #18726
Conversation
…add unit testing, and fix potential panic Reference: #18726 (comment) The current behavior is to return an empty `KeyValueTags` if the type is unrecognized in `New()` in preference over panicking or requiring all consumers to implement error handling. This augments `New()` to accept the named `KeyValueTags` in addition to its underlying `map[string]*TagData` type, preventing confusing behavior on an otherwise easy to miss resource/service implementation detail. Added unit testing to cover various `New()` type scenarios. Fixed panic discovered while implementing the unit testing.
…add unit testing, and fix potential panic (#19011) * internal/keyvaluetags: Allow KeyValueTags type passthrough in New(), add unit testing, and fix potential panic Reference: #18726 (comment) The current behavior is to return an empty `KeyValueTags` if the type is unrecognized in `New()` in preference over panicking or requiring all consumers to implement error handling. This augments `New()` to accept the named `KeyValueTags` in addition to its underlying `map[string]*TagData` type, preventing confusing behavior on an otherwise easy to miss resource/service implementation detail. Added unit testing to cover various `New()` type scenarios. Fixed panic discovered while implementing the unit testing. * internal/keyvaluetags: Ensure New() of KeyValueTags named and underlying types are copies
This has been released in version 3.38.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Reference: #7926
Output from acceptance testing: Will be handled via CI, review, and daily acceptance testing