-
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
[Bug]: InvalidParameterCombination: DBClusterInstanceClass isn't supported for DB engine aurora-postgresql. #30596
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
I would love to submit a PR to update the DB instance classes. I have reviewed the I am beginning to think this might be an aws/aws-sdk-go issue. I will continue to investigate further. Any help here would be much appreciated. Thank you. |
Did you managed to find a workaround? I am hitting the same error for Launching RDS from the Management console works fine for this instance class. |
I would love to help contribute but would need some help. Any chance you could give me a push start? Thank you. |
cc: @gdcrocx |
Hey @GeorgeDavis-TriumphTech 👋 Thank you for taking the time to raise this, and for the willingness to contribute a fix! I don't personally have any particular information to help with a push start, but perhaps supplying debug logging (redacted as needed) could help us to take a look into this with you? |
I am also encountering this issue. To try and debug I bit, I created an aurora-postgresql multi-az RDS cluster instance using the console and then imported it into the terraform state. After re-running the plan after importing, the output snippet in the plan looks like...
Based on this output it looks like terraform isn't properly retrieving the existing instance class from the cluster. I also was digging through the trace logging of the plan output for API calls to the
Based on these results, I don't believe terraform is able to retrieve/create instance class information for DB instances that are Aurora and Multi-AZ. For instances of that type, Additionally, when applying the plan, terraform executes Unfortunately I am not exactly sure what the fix should be here but this issue is a blocker for us so trying to get my debug information on here to help with investigation |
After some additional troubleshooting, I ended up implementing the following changes. I am not sure whether or not to call this a workaround or not because I actually think the implementation on terraforms part might actually be correct. The problem is really just that the Essentially, you need to create the
The important being that you need to force both
From the docs Amazon also recommends not inputting AZ's to your Anyway this is where we landed, hopefully these notes help others who might stumble across this |
Hey @rosshillery 👋 Thank you for following up with that additional information! @GeorgeDavis-TriumphTech, can you take a look over the information provided above and let us know if that resolves the issue for you as well? |
Hey @justinretzolk / @GeorgeDavis-TriumphTech The solution provided by @rosshillery helped me fix this issue. Although I didn't have to specifically set the parameters suggested by him to The error message here needs to be fixed. This is a possible issue of Need to fix this error message. Although not sure if this error message is being returned by AWS API or generated by TF aws provider. |
Possibly related #28339 |
the issue is still reproducible here! |
the issue is reproducible with aurora-mysql engine also. |
Terraform Core Version
1.4.4
AWS Provider Version
4.62.0
Affected Resource(s)
Expected Behavior
Terraform should create an Amazon Aurora PostgreSQL cluster with
db.t4g.large
DB instance class.Actual Behavior
When I create a new Aurora PostgreSQL v14.4 db instance with Terraform
aws_rds_cluster
in AWS N. Virginia (us-east-1), I am unable to create an instance withdb.t4g.large
AWS Graviton instance(s). Even though, these instance types are available for the region. Tryaws rds describe-orderable-db-instance-options --engine aurora-postgresql --engine-version 14.4 --query "*[].{DBInstanceClass:DBInstanceClass}" --output text --region us-east-1
for an entire list of supported DB instance classes in theus-east-1
region.Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
db.t4g.large
) with engine version v14.4 in AWS Regionus-east-1
terraform plan
terraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
N/A
References
AWS RDS DB Instance Class Regions Support documentation - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#Concepts.DBInstanceClass.RegionSupport.CLI
Shell command to get list of AWS Region supported DB Instance classes -
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: