Amazon Aurora で Database Insights のスタンダードモードを有効にする
Amazon Aurora で Database Insights のスタンダードモードを有効にするには、次の手順を使用します。
DB クラスターの作成時に Database Insights のスタンダードモードを有効にする
Amazon Aurora のデータベースを作成するときに、Database Insights のスタンダードモードを有効にします。
- Console
-
コンソールで、DB クラスターを作成するときに Database Insights のスタンダードモードを有効にできます。Database Insights の設定は、DB クラスター内のすべての DB インスタンスに適用されます。
コンソールを使用して DB クラスターを作成するときに Database Insights のスタンダードモードを有効にするには
AWS Management Console にサインインし、Amazon RDS コンソール https://console.aws.amazon.com/rds/
を開きます。 -
[データベース] をクリックします。
-
[データベースの作成] を選択します。
-
[Database Insights] セクションで [スタンダードモード] を選択し、次のオプションから選択して Performance Insights のオンとオフを切り替えます。
Performance Insights を無効にするには、[Performance Insights を有効にする] の選択を解除します。
Performance Insights を有効にするには、[Performance Insights を有効にする] を選択します。Performance Insights を設定するには、次のオプションを指定します。
-
保持期間 - Performance Insights データを保持する期間。保持期間は 7 日以上にする必要があります。
-
AWS KMS key - KMS キーを指定します。Performance Insights は、潜在的に機密性の高いすべてのデータを KMS キーを使用して暗号化します。データは、転送中と不使用時のいずれも暗号化されます。詳細については、「Amazon Aurora リソースの暗号化」を参照してください。
-
-
[データベースの作成] を選択します。
- AWS CLI
-
DB クラスターの作成時に Database Insights のスタンダードモードを有効にするには、create-db-cluster AWS CLI コマンドを呼び出し、次の値を指定します。
--database-insights-mode standard
– Database Insights のスタンダードモードを有効にします。--engine
– DB クラスターのデータベースエンジン。-
--db-cluster-identifier
– DB クラスターの固有の識別子。 -
--enable-performance-insights
または--no-enable-performance-insights
– Performance Insights を有効または無効にします。--enable-performance-insights
を指定する場合は、--performance-insights-retention-period
(DB クラスターのデータの保持期間) も指定する必要があります。保持期間は 7 日以上にする必要があります。
次の例では、DB クラスターの作成時に Database Insights のスタンダードモードと Performance Insights を有効にします。
Linux、macOS、Unix の場合:
aws rds create-db-cluster \ --database-insights-mode standard \ --engine aurora-postgresql \ --db-cluster-identifier sample-db-cluster \ --enable-performance-insights \ --performance-insights-retention-period 7
Windows の場合:
aws rds create-db-cluster ^ --database-insights-mode standard ^ --engine aurora-postgresql ^ --db-cluster-identifier sample-db-cluster ^ --enable-performance-insights ^ --performance-insights-retention-period 7
次の例では、DB クラスターの作成時に Database Insights のスタンダードモードを有効にし、Performance Insights を無効にします。
Linux、macOS、Unix の場合:
aws rds create-db-cluster \ --database-insights-mode standard \ --engine aurora-postgresql \ --db-cluster-identifier sample-db-cluster \ --no-enable-performance-insights
Windows の場合:
aws rds create-db-cluster ^ --database-insights-mode standard ^ --engine aurora-postgresql ^ --db-cluster-identifier sample-db-cluster ^ --no-enable-performance-insights
- RDS API
-
DB クラスターの作成時に Database Insights のスタンダードモードを有効にするには、CreateDBCluster Amazon RDS API オペレーションに次のパラメータを指定します。
DatabaseInsightsMode
~standard
EnablePerformanceInsights
~True
またはFalse
。EnablePerformanceInsights
をTrue
に設定する場合は、PerformanceInsightsRetentionPeriod
を 7 日以上に設定する必要があります。
DB クラスターの変更時に Database Insights のスタンダードモードを有効にする
Amazon Aurora のデータベースを変更するときに Database Insights のスタンダードモードを有効にします。
- Console
-
コンソールで、DB クラスターを変更するときに Database Insights のスタンダードモードを有効にできます。Database Insights の設定は、DB クラスター内のすべての DB インスタンスに適用されます。
コンソールを使用して DB クラスターを変更するときに Database Insights のスタンダードモードを有効にするには
AWS Management Console にサインインし、Amazon RDS コンソール https://console.aws.amazon.com/rds/
を開きます。 -
[データベース] をクリックします。
-
DB インスタンスを選択した上で、[Modify] (変更) を選択します。
-
[Database Insights] セクションで [スタンダードモード] を選択し、次のオプションから選択します。
Performance Insights を無効にするには、[Performance Insights を有効にする] の選択を解除します。
Performance Insights を有効にするには、[Performance Insights を有効にする] を選択します。Performance Insights を設定するには、次のオプションを指定します。
-
保持期間 - Performance Insights データを保持する期間。保持期間は 7 日以上にする必要があります。
-
AWS KMS key - KMS キーを指定します。Performance Insights は、潜在的に機密性の高いすべてのデータを KMS キーを使用して暗号化します。データは、転送中と不使用時のいずれも暗号化されます。詳細については、「Amazon Aurora リソースの暗号化」を参照してください。
-
-
[続行] を選択します。
-
[変更のスケジュール] で、[今すぐ適用] を選択します。次にスケジュールされたメンテナンスウィンドウで [適用] を選択すると、データベースではこの設定が無視され、Database Insights のスタンダードモードが直ちに有効になります。
-
[クラスタークラスターの変更] を選択します。
- AWS CLI
-
DB クラスターの変更時に Database Insights のスタンダードモードを有効にするには、modify-db-cluster AWS CLI コマンドを呼び出し、次の値を指定します。
--database-insights-mode standard
– Database Insights のスタンダードモードを有効にします。-
--db-cluster-identifier
– DB クラスターの識別子。 -
--enable-performance-insights
または--no-enable-performance-insights
– Performance Insights を有効または無効にします。--enable-performance-insights
を指定する場合は、--performance-insights-retention-period
(DB クラスターのデータの保持期間) も指定する必要があります。保持期間は 7 日以上にする必要があります。
次の例では、DB クラスターの変更時に Database Insights のスタンダードモードを有効にし、Performance Insights を有効にします。
Linux、macOS、Unix の場合:
aws rds modify-db-cluster \ --database-insights-mode standard \ --db-cluster-identifier sample-db-cluster \ --enable-performance-insights \ --performance-insights-retention-period 7
Windows の場合:
aws rds modify-db-cluster ^ --database-insights-mode standard ^ --db-cluster-identifier sample-db-cluster ^ --enable-performance-insights ^ --performance-insights-retention-period 7
次の例では、DB クラスターの変更時に Database Insights のスタンダードモードを有効にし、Performance Insights を無効にします。
Linux、macOS、Unix の場合:
aws rds modify-db-cluster \ --database-insights-mode standard \ --db-cluster-identifier sample-db-cluster \ --no-enable-performance-insights
Windows の場合:
aws rds modify-db-cluster ^ --database-insights-mode standard ^ --db-cluster-identifier sample-db-cluster ^ --no-enable-performance-insights
- RDS API
-
DB クラスターの変更時に Database Insights のスタンダードモードを有効にするには、ModifyDBCluster Amazon RDS API オペレーションに次のパラメータを指定します。
DatabaseInsightsMode
~standard
EnablePerformanceInsights
~True
またはFalse
。EnablePerformanceInsights
をTrue
に設定する場合は、PerformanceInsightsRetentionPeriod
を 7 日以上に設定する必要があります。