Open AdrianBegg opened 1 year ago
Both: encryption_configuration
and tags
are defined in the CloudFormation schema as createOnlyProperties
:
This means those attributes use the RequiresReplace
plan modifier so will result in a redeploy if modified (which they are not).
Note that tags
is also considered a writeOnlyProperty
Community Note
Terraform CLI and Terraform AWS Cloud Control Provider Version
Terraform v1.3.5 on windows_amd64
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
During
terraform apply
(after initial resource deployment) as no changes have been made since the last apply the resource should remain outside of the plan.Actual Behavior
The resource is marked as forced replacement. The triggering attributes are encryption_configuration.kms_key and tags.
The expected behavior would be that; a) A tag update would not force a redeploy and; b) If encryption_configuration is not defined in the configuration and during read API returned no KMS defined that this would be ignored/not included in the plan
Steps to Reproduce
terraform apply
Important Factoids
References
0000