1 Answer
- Newest
- Most votes
- Most comments
2
Hello,
You can try the below command for the desired result
aws docdb describe-orderable-db-instance-options --engine docdb --query 'OrderableDBInstanceOptions[*].DBInstanceClass' | jq -r '.[]' | sort | uniq
This can occur for a few reasons for multiple entries:
- The same instance class is available for different instance storage types (standard, provisioned IOPS). Each storage type will be listed separately.
- In some Regions, the same class is available with both VPC and non-VPC network connectivity options. These will appear as duplicates.
- If an instance class has different capabilities or configurations available in the current Region, each variant will be listed separately.
Let me know if you have any other issues
Thanks
Abhinav
answered 4 months ago
Relevant content
- asked 10 months ago
- asked 3 years ago
- Accepted Answerasked 10 months ago
- asked 3 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
The repeated DBInstanceClass comes from OrderableDBInstanceOptions[*] in your query: several OrderableDBInstanceOptions point to same instance class. Just remove the --query option and submit again to see the original data structure with repeated classes.
Abhinav is correct. Its because there are different storage types along with Engine Versions. You would have to add additonal filters to match your requirements.
Great it works! Thanks a lot for the explanations, as I understand for scaling, I should pass the Instance Options parameters accordingly to get the list of correct instance classes for the minimum higher configuration.