例: デフォルトのパラメータグループによる 1.1.1.0 から 1.2.0.2 へのメジャーバージョンアップグレード - Amazon Neptune

例: デフォルトのパラメータグループによる 1.1.1.0 から 1.2.0.2 へのメジャーバージョンアップグレード

アップグレードする DBCluster と、その作成に使用したテンプレートを見つけます。例:

Description: Base Template to create Neptune Stack with Engine Version 1.1.1.0 using default Parameter Groups Parameters: DbInstanceType: Description: Neptune DB instance type Type: String Default: db.r5.large Resources: NeptuneDBCluster: Type: 'AWS::Neptune::DBCluster' Properties: EngineVersion: 1.1.1.0 NeptuneDBInstance: Type: 'AWS::Neptune::DBInstance' Properties: DBClusterIdentifier: Ref: NeptuneDBCluster DBInstanceClass: Ref: DbInstanceType DependsOn: - NeptuneDBCluster Outputs: DBClusterId: Description: Neptune Cluster Identifier Value: Ref: NeptuneDBCluster
  • DBClusterParameterGroupデフォルトを、新しいエンジンバージョンで使用されているパラメータグループファミリーのものに更新します (こちらdefault.neptune1.2)。

  • DBCluster にアタッチされた各 DBInstance について、デフォルトの DBParameterGroup を新しいエンジンバージョンで使用されているファミリーのものに更新します (こちら default.neptune1.2)。

  • DBInstanceParameterGroupName プロパティをそのファミリーのデフォルトパラメータグループに設定します (こちら default.neptune1.2)。

  • EngineVersion プロパティを 1.1.0.0 から 1.2.0.2 に更新します。

テンプレートは次のようになります。

Description: Template to upgrade major engine version to 1.2.0.2 by using upgraded default parameter groups Parameters: DbInstanceType: Description: Neptune DB instance type Type: String Default: db.r5.large Resources: NeptuneDBCluster: Type: 'AWS::Neptune::DBCluster' Properties: EngineVersion: 1.2.0.2 DBClusterParameterGroupName: default.neptune1.2 DBInstanceParameterGroupName: default.neptune1.2 NeptuneDBInstance: Type: 'AWS::Neptune::DBInstance' Properties: DBClusterIdentifier: Ref: NeptuneDBCluster DBInstanceClass: Ref: DbInstanceType DBParameterGroupName: default.neptune1.2 DependsOn: - NeptuneDBCluster Outputs: DBClusterId: Description: Neptune Cluster Identifier Value:

次に、CloudFormation を使用して、改訂したテンプレートを実行します。