-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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 assigning custom parameter_group_name #31719
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @hitesh-dev19 👋 Thank you for taking the time to raise this! I did a bit of looking around, and I believe this may be a configuration issue rather than a bug within the provider. I'll link the most relevant documents that I found below. |
Hi justinretzolk, |
Hey @hitesh-dev19 -- I see where you're coming from now. So that we have the relevant information in order to be able to look into this, can you supply debug logs (redacted as needed) as well? |
Hey @justinretzolk , I can refer my issue, which is very similar to #218 but there a subsequent terraform apply changes parameter_group_name to the correct value and do an RDS reboot to get their changes. |
Hey @justinretzolk , So now its happening in the same way like #218 , but that issue has been resolved in the past but that doesn't look that way. Can you please confirm this. thanks. |
Hello @justinretzolk , I have noticed that with the latest terraform aws provider version update v5.0.0, the oracle replica resource is still failing with the same error |
Any help appreciated ! |
We are also having the same issue with RDS oracle, unable to pass custom parameter group, though we are passing, its taking default parameter group and then the status is going to |
Is there any update on this bug. This still seems to be happening. Creating a cross region read replica for RDS-Oracle does not respect the Custom parameter group that we pass. If we try to modify the read replica, to fix the same, it tries to delete and re-create. In-region Read-Replica does not have any issues. |
Facing same problem. Curious to know if this is even acknowledged as a bug from hashicorp. Interestingly, while the tfl state shows as tainted and we can see that it is associating the default parameter group in AWS console, Tfl state output shows the custom parameter group name. So, custom parameter group is not completely ignored. Also, aws cli command create-db-instance-read-replica succeeds with exact same parameter group. Hoping to get a resolution sooner on this. |
@justinretzolk can you please look at this bug, its still unresolved. |
Hi @hitesh-dev19, can you please share more of your Terraform configuration? Specifically, where you create the parameter group. It would also be helpful to see the configuration that creates the source database and its parameter group. |
Hi @gdavison Attaching two tar files that can be used for reproducing this problem, where parameter group that is passed to aws_db_instance is not used when creating the readreplica instance, especially when extended parameters are used (eg: max_string_size) hashi-module-rds-oracle.tar.gz => This will create rds-oracle terraform module that can be used to create a RDS Oracle db instance with parameter/option groups. |
This functionality has been released in v5.40.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. 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. |
Terraform Core Version
Terraform v1.4.0 on darwin_arm64
AWS Provider Version
4.67.0
Affected Resource(s)
aws_db_instance
Expected Behavior
Trying to create Cross Region Replica for Oracle RDS Instance
Actual Behavior
I am trying to create the cross region replica for Oracle RDS Instance providing custom parameter_group_name, but still it is getting assigned to default parameter group, eventually it is failing with the error ,
Error: waiting for RDS DB Instance (******) create: unexpected state 'incompatible-parameters', wanted target 'available, storage-optimization'.
, and when I try to reapply terraform changes, it is showing that the changes for parameter group with the custom one, then it is deleting that instance and creating new instance again with the same default parameter group.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
terraform plan
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: