-
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
aws_cloudwatch_metric_stream resource tagging always shows changes #22151
Comments
update: workaround , if anyone is running into this, is to use |
This is probably happening because tags on metric streams can only be applied when creating, not during updates. As per the AWS docs:
I ended up manually running Might want to mention it in the |
I don't think this is limited to using the We just want to simply update our tags, but the tags are never actually updated, even though the I think this is because since we are supply tags https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/cloudwatch/metric_stream.go#L167-L168 is never hit, and the update never occurs. |
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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform CLI and Terraform AWS Provider Version
aws provider version
Affected Resource(s)
Terraform Configuration Files
We are using the
default_tags
feature of the aws provider. This may somehow play a part in this bug.Debug Output
Panic Output
Expected Behavior
tags
andtags_all
show pending changes with multiple runs of plan/apply (with no code changes to tags between runs)
Actual Behavior
Running
terraform plan
orterraform apply
multiple times, with no code changes to the resources, always shows pending changes.Steps to Reproduce
terraform apply
Important Factoids
We are using the
default_tags
feature of the aws provider. This may somehow play a part in this bug.Observation:
It seems that
tags_all
is not saved to state. I tried to set the resourcestags = {}
, to set tags only with thedefault_tags
on the aws provider config. However this problem still persists: All the tags intags_all
will show being added, every time plan or apply is run.References
The text was updated successfully, but these errors were encountered: