

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 例: デフォルトのパラメータグループによる 1.1.1.0 から 1.2.0.2 へのメジャーバージョンアップグレード
<a name="cfn-engine-update-1110-1202-default"></a>

アップグレードする `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 、 を使用して、改訂されたテンプレートを実行します。