-
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
resource aws_db_parameter_group has continuous drift since AWS provider 3.55.0 #20660
Comments
@r-kok , you have a typo in the title. The version indicated in the title should be |
Confirming I get this on the latest versions:
|
Today I had some time to reproduce the issue.
Steps to reproduce
|
I learned some more about the circumstances under which this error occurs. The problem arises when you try to create a "user" parameter with a value that is identical to value on "system" or "engine-default" source level. For example, oracle parameter "open_cursors" has value 300 on "system" source level. If you try to set "open_cursors" = 300 you have drift. If instead you set "open_cursors" = 301 there is no drift. Tested with terraform AWS provider 4.0.0 |
The bad resource has drift, the ok resource does not.
|
@r-kok, we have noticed the same thing, in that when a parameter value matches the AWS default setting we get constant drift. On PostgreSQL RDS we changed our minimum
|
pls fix :) |
Is this the same issue as #22028 ? |
@blowfishpro , it appears so, yes. As discussed above, the trigger seems to be when a parameter is supplied which also matches the default setting in AWS. I would suggest that #22028 is closed as a dupe of this. |
I believe this issue can be closed now. See the merged PR #24737 for a demonstration of why this is a behavioral artifact of the AWS API and not Terraform itself. The PR adds a NOTE to the latest |
Hey y'all 👋 Based on the details @jvalente11 included in their PR -- which added some information around this to the resource documentation -- this looks to be an upstream issue with AWS. Since the behavior is now documented, we'll close this issue for now, but I'll also be following up with a support ticket to AWS to report the unexpected behavior. |
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
Terraform v0.14.11
AWS provider 3.55.0
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
since we had no drift using provider version 3.54, we expected no drift with version 3.55 either.
Actual Behavior
A terraform plan using AWS provider 3.55 generates the output shown below.
When we terraform apply these changes, and run terraform plan a second time, we get the same output again.
Thus the changes were not applied as expected.
Steps to Reproduce
terraform plan
: shows terraform driftterraform apply -auto-approve
: apply seems succesful.terraform plan
: shows same terraform drift as if the apply failed (UNEXPECTED)Important Factoids
We use the parameter group in the context of an Oracle RDS database.
As a workaround we have temporarily pinned the version of the AWS provider in a versions.tf file:
References
We suspect it is related to or caused by this item in the AWS provider changelog:
The text was updated successfully, but these errors were encountered: