-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Adding GetRecommendedRdsInstanceType to RDS module #799
Adding GetRecommendedRdsInstanceType to RDS module #799
Conversation
Something that DescribeOrderableDBInstanceOptions exposes that I didn't think to add as an option is the DB engine-version. I believe there are cases where the version could make a difference on availability of an instance type, so i'll go ahead and add that. This code should still be reviewable as is, and I can make any feedback changes while I add that parameter. |
Updated the code to also add engine version to the check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thank you! Just a couple minor NITs in the comments, and I can kick off tests.
Co-authored-by: Yevgeniy Brikman <[email protected]>
Co-authored-by: Yevgeniy Brikman <[email protected]>
Done! |
Thanks! Kicking off tests now. |
Ha! Got a test failure related to the instance type for EC2 instances:
I think this is exactly the issue you're fixing for RDS here, but we need to use the The other test failure is unrelated; our GCP test account is hitting some quota issues that we're cleaning up separately. |
Yup I can update that test |
updated! |
Thank you! One note: I think you may have accidentally checked in a |
Whoops, removed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, great, thank you. I'll kick off tests again.
Tests passed. Merging now. |
PR to address #783
This PR adds functionality to the RDS module to get a recommended instance type based on region, database engine, and a given list of instances. It will pick the first available one from the list or throw an error if none exist.
It uses the AWS SDK function DescribeOrderableDBInstanceOptions to achieve this.
I modeled it a lot off the EC2 get recommended instance type functionality, but it is somewhat simplified since the underlying AWS method used has less options.