-
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
aws_rds_cluster_parameter_group shows an unintended diff about time_zone #14072
Comments
#15583 appears to be the same underlying issue |
Hi @chroju! I was trying to reproduce this issue, but was not able to with provided configuration. If you're still seeing this issue, can you post a config that I can use to test a fix? |
Hi @bill-rich . I tried to reproduce this problem again. The config to reproduce the problem is as follows. resource "aws_rds_cluster_parameter_group" "test1" {
name = "test1"
family = "aurora-mysql5.7"
parameter {
name = "time_zone"
value = "UTC"
apply_method = "immediate"
}
parameter {
name = "server_audit_logging"
value = "0" # this is same as the default value
apply_method = "immediate"
}
}
resource "aws_rds_cluster_parameter_group" "test2" {
name = "test2"
family = "aurora-mysql5.7"
parameter {
name = "time_zone"
value = "UTC"
apply_method = "immediate"
}
} Once you have run
This behavior is probably caused by the difference in Therefore, my initial thought that the diff might be caused by the letter case seems to be wrong. When there is some other diff, the difference in letter case will also be shown as an unintended diff. This can be reproduced with any parameter other than So, in my case, there are two problems.
|
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. 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 Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Nothing.
Panic Output
Nothing.
Expected Behavior
Once we run
terraform apply
and then runterraform plan
, the result should beno changes
.Actual Behavior
The difference is displayed as follows.
Since it's not possible to set
time_zone
to lowercase, I suspect this is a bug. I think this is due to theToLower()
in theflattenParameters()
function.https://github.com/terraform-providers/terraform-provider-aws/blob/2b183022f881e6ccb0d2a1cb0a750f52daf89d5d/aws/structure.go#L931-L950
Steps to Reproduce
terraform apply
terraform plan
Important Factoids
Nothing.
References
The text was updated successfully, but these errors were encountered: