Open vinlp opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @vinlp š Thank you for taking the time to raise this! So that we have the information necessary to look into this, can you supply debug logs (redacted as needed)?
Hello, I'm seeing a similar issue. It seems at least the following resources are affected:
aws_cloudwatch_metric_alarm
aws_default_network_acl
aws_default_security_group
aws_secretsmanager_secret_version
Note: in our case, aws_secretsmanager_secret_version
depends on a aws_kms_secrets
data source, which is reported as re-read during a plan
when default_tags
are added/changed.
Had the issue with AWS provider 5.41.0 and 5.43.0 as well.
Terraform Core Version
1.4.6
AWS Provider Version
5.7.0
Affected Resource(s)
aws_subnet
Expected Behavior
We have default_tags set at the provider level.
Each time the default_tags are updated, we want those tags to be updated on all the resources and especially on the aws_subnet ones. Our aws_subnet resources have their own tags: only Name
Actual Behavior
Each time we update those default_tags, we are having issues with aws_subnet resources trying to be replaced/re-created instead of being updated with the new default_tags + their current tag (Name).
plan output
this ends up with errors during the apply.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None