スキップしてコンテンツを表示

CLIコマンド(rds describe-orderable-db-instance-options)の実行結果とCreate rds instanceの差分について

0

<CLIコマンド実行内容> aws rds describe-orderable-db-instance-options --engine 'mysql' --engine-version '8.0.39' --query "OrderableDBInstanceOptions[].[DBInstanceClass,StorageType,MinIopsPerDbInstance,MaxIopsPerDbInstance,MinStorageSize,MaxStorageSize,MinStorageThroughputPerDbInstance,MaxStorageThroughputPerDbInstance]" --output text

上記コマンドを実行して、取得した結果の抜粋ですが、 db.c6gd.8xlarge io2 1000 256000 100 65536 None None db.c6gd.large gp3 3000 64000 20 65536 125 4000 db.c6gd.large io1 1000 256000 100 65536 None None db.c6gd.large io2 1000 256000 100 65536 None None db.c6gd.medium gp3 3000 64000 20 65536 125 4000

DBインスタンスタイプの「db.c6gd.large」の行のストレージタイプには「gp2」の表示がないため、gp2を利用してrdsインスタンスは作成できないものと思っていましたが、実際には作成できることが判明しました。 上記CLIコマンドをインスタンス作成時の事前要件確認に利用しようと思っていたのですが、これでは整合性がとれていないため 使えないということになるかと思います。 ec2インスタンス作成の場合は、dry-runのコマンドがあるため、そのコマンドを利用して事前確認を実施しておりますが、 rdsにはdry-runがないため、その代用、その確認方法の1つとして上記コマンドを利用できるとおもっていましたが、 この結果からすると利用できない(事前確認には不適)ということになりますでしょうか? rdsインスタンスの作成事前確認(GUIで利用する予定です)をする最善の方法について、ご指導賜りたく、 よろしくお願い申し上げます。

質問済み 8ヶ月前114ビュー
1回答
0
承認された回答

The discrepancy you're observing between the describe-orderable-db-instance-options command results and actual RDS instance creation capabilities is important to understand.

When you run the command and don't see gp2 listed for db.c6gd.large but can still create an instance with that configuration, it suggests that the command output may not be showing all available options or there might be default options that aren't explicitly listed.

Unlike EC2, RDS doesn't have a dry-run option to validate configurations before creation. However, there are several approaches you can take for pre-validation:

  1. Use the AWS Management Console's RDS creation wizard - it will validate your configuration choices in real-time and show you only compatible options as you make selections.

  2. Use CloudFormation with the --validate-template option to check if your RDS configuration is valid without actually creating resources.

  3. For more detailed validation, you can use the describe-orderable-db-instance-options command with different parameter combinations and filters to get more specific information about supported configurations.

  4. Consider using AWS Config rules or custom scripts that check against the RDS API to validate your intended configurations.

The describe-orderable-db-instance-options command is still useful for general guidance, but as you've discovered, it may not provide a complete picture of all possible configurations. For the most accurate pre-validation when using the GUI, the AWS Management Console's built-in validation during the creation process is likely your best option.
Sources
Amazon RDS examples using AWS CLI - AWS SDK Code Examples
Use DescribeOrderableDBInstanceOptions with an AWS SDK or CLI - Amazon Relational Database Service
Use DescribeOrderableDBInstanceOptions with an AWS SDK or CLI - AWS SDK Code Examples
Aurora cluster, DB Instance class for my region | AWS re:Post

回答済み 8ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ