-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
RDS: aws_db_instance not respecting parameter_group_name on first run #8079
Comments
Confirming issue still present in v0.7.7 and v0.7.9. This issue is especially inconvenient when using (AWS) credentials generated via STS or federated login which normally expire after only 60mins due to the RDS provisioning and modification taking 40+ mins for instances with large amounts of data. |
This issue appears to still be present under |
Still present in Terraform v0.9.6 |
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
When using
aws_db_instance
and setting theparameter_group_name
it is presented in bothplan
andapply
as being set with the correct value. However, after being applied the value is set to something else. When looking at the RDS instance in the AWS interface it is not set properly, it is set todefault.mysql5.6
, notmysql-params
.Upon an immediate subsequent
terraform plan
this diff is evident, then a subsequentterraform apply
changesparameter_group_name
to the correct value. I then need to do an RDS reboot to apply it too.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
I expect
parameter_group_name
to be applied with the value it was set within the config on first apply. I also expect to have to do an AWS RDS reboot as according to docs:https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html
Actual Behavior
parameter_group_name
is set todefault.mysql5.6
notmysql-params
.Steps to Reproduce
terraform plan
terraform apply
terraform plan
Note: this is the only change reported.
terraform apply
Note: this is the only change reported.
Now a manual RDS reboot needed to apply change and finally get a proper
parameter_group_name
.The text was updated successfully, but these errors were encountered: