Skip to content
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

AWS CLI modify-db-cluster fails with unsupported DbClusterInstanceClass #9077

Closed
1 task
marrataj opened this issue Nov 15, 2024 · 1 comment
Closed
1 task
Assignees
Labels
bug This issue is a bug. closed-for-staleness p2 This is a standard priority issue rds service-api This issue is due to a problem in a service API, not the SDK implementation.

Comments

@marrataj
Copy link

Describe the bug

When trying to modify restored cluster using AWS CLI I'm getting error:
An error occurred (InvalidParameterCombination) when calling the ModifyDBCluster operation: DbClusterInstanceClass isn't supported for DB engine aurora-postgresql even though db.serverless is on the list when I do aws cli describe-db-instance-options for aurora-postgresql engine in eu-west-1 region.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

I should be able to modify db cluster instance class to db.serverless

Current Behavior

An error occurred (InvalidParameterCombination) when calling the ModifyDBCluster operation: DbClusterInstanceClass isn't supported for DB engine aurora-postgresql.

Reproduction Steps

  1. Create rds cluster with aurora postgresql engine and serverless V2 capacity settings and db instance
  2. Make backup using AWS backup
  3. Restore from backup using AWS Console
  4. Restored cluster is missing option to set Serverless V2 capacity settings
  5. Try to modify restored cluster using AWS CLI aws cli modify-db-cluster aurora-postgres-cluster-restored --db-cluster-instance-class db.serverless
  6. An error should occur

Possible Solution

No response

Additional Information/Context

No response

CLI version used

1.36.3, 2.21.2, 1.22

Environment details (OS name and version, etc.)

Linux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux Ubuntu 22.04

@marrataj marrataj added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 15, 2024
@tim-finnigan tim-finnigan self-assigned this Nov 25, 2024
@tim-finnigan
Copy link
Contributor

Thanks for reaching out. The modify-db-cluster command calls the underlying ModifyDBCluster API, so this issue involves the RDS service rather than the AWS CLI directly.

I could reproduce this behavior — running:

aws rds modify-db-cluster --db-cluster-identifier database-1 --db-cluster-instance-class db.serverless

Results in:

An error occurred (InvalidParameterCombination) when calling the ModifyDBCluster operation: DbClusterInstanceClass isn't supported for DB engine aurora-mysql.

The documentation for that command/API notes the following regarding DbClusterInstanceClass:

Not all DB instance classes are available in all AWS Regions, or for all database engines.

For the full list of DB instance classes and availability for your engine, see DB Instance Class in the Amazon RDS User Guide.

For PostgreSQL specifically there is guidance here: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL.Concepts.General.DBVersions.html

Based on the the documentation this appears to be expected behavior. If you would like us to reach out to the RDS team internally with any questions or feedback related to this, please let us know.

@tim-finnigan tim-finnigan added closing-soon This issue will automatically close in 4 days unless further comments are made. rds service-api This issue is due to a problem in a service API, not the SDK implementation. p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Nov 25, 2024
@github-actions github-actions bot added closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. closed-for-staleness p2 This is a standard priority issue rds service-api This issue is due to a problem in a service API, not the SDK implementation.
Projects
None yet
Development

No branches or pull requests

2 participants