-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/aws_cloudwatch_metric_stream: fix tag updates #28310
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccCloudWatchMetricStream_' PKG=cloudwatch ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/cloudwatch/... -v -count 1 -parallel 3 -run=TestAccCloudWatchMetricStream_ -timeout 180m
=== RUN TestAccCloudWatchMetricStream_basic
=== PAUSE TestAccCloudWatchMetricStream_basic
=== RUN TestAccCloudWatchMetricStream_disappears
=== PAUSE TestAccCloudWatchMetricStream_disappears
=== RUN TestAccCloudWatchMetricStream_nameGenerated
=== PAUSE TestAccCloudWatchMetricStream_nameGenerated
=== RUN TestAccCloudWatchMetricStream_includeFilters
=== PAUSE TestAccCloudWatchMetricStream_includeFilters
=== RUN TestAccCloudWatchMetricStream_excludeFilters
=== PAUSE TestAccCloudWatchMetricStream_excludeFilters
=== RUN TestAccCloudWatchMetricStream_update
=== PAUSE TestAccCloudWatchMetricStream_update
=== RUN TestAccCloudWatchMetricStream_tags
=== PAUSE TestAccCloudWatchMetricStream_tags
=== RUN TestAccCloudWatchMetricStream_additional_statistics
=== PAUSE TestAccCloudWatchMetricStream_additional_statistics
=== CONT TestAccCloudWatchMetricStream_basic
=== CONT TestAccCloudWatchMetricStream_excludeFilters
--- PASS: TestAccCloudWatchMetricStream_excludeFilters (18.90s)
=== CONT TestAccCloudWatchMetricStream_tags
--- PASS: TestAccCloudWatchMetricStream_basic (229.69s)
=== CONT TestAccCloudWatchMetricStream_update
=== CONT TestAccCloudWatchMetricStream_includeFilters
--- PASS: TestAccCloudWatchMetricStream_includeFilters (17.32s)
=== CONT TestAccCloudWatchMetricStream_additional_statistics
--- PASS: TestAccCloudWatchMetricStream_tags (278.73s)
=== CONT TestAccCloudWatchMetricStream_disappears
--- PASS: TestAccCloudWatchMetricStream_additional_statistics (54.98s)
=== CONT TestAccCloudWatchMetricStream_nameGenerated
--- PASS: TestAccCloudWatchMetricStream_update (323.02s)
--- PASS: TestAccCloudWatchMetricStream_nameGenerated (279.44s)
--- PASS: TestAccCloudWatchMetricStream_disappears (285.54s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/cloudwatch 588.449s
@taharah Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.47.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. Thank you! |
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. |
Description
The
aws_cloudwatch_metric_stream
resource cannot make changes to tags, which results in a perpetual diff. When updating tags, theTagResource
andUntagResource
APIs must be used. However, the resource currently only uses the tag-on-create semantics of thePutMetricStream
API.Relations
Closes #22151
References
Output from Acceptance Testing