

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

# Esempio: aggiornamento della versione principale da 1.1.1.0 a 1.2.0.2 con gruppi di parametri predefiniti
<a name="cfn-engine-update-1110-1202-default"></a>

Individua il `DBCluster` che desideri aggiornare e il modello che hai usato per crearlo. Esempio:

```
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
```
+ Aggiorna l'impostazione predefinita `DBClusterParameterGroup` a quella della famiglia di gruppi di parametri utilizzata dalla nuova versione del motore (qui `default.neptune1.2`).
+ Per ogni `DBInstance` collegato al `DBCluster`, aggiorna l'impostazione predefinita `DBParameterGroup` a quella della famiglia utilizzata dalla nuova versione del motore (qui `default.neptune1.2`).
+ Imposta la proprietà `DBInstanceParameterGroupName` sul gruppo di parametri predefinito nella famiglia (qui `default.neptune1.2`).
+ Aggiorna la proprietà `EngineVersion` da `1.1.0.0` a `1.2.0.2`.

Il modello dovrebbe essere simile al seguente:

```
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:
```

Ora usa CloudFormation per eseguire il modello rivisto.