Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.
Contoh: Upgrade versi utama dari 1.1.1.0 ke 1.2.0.2 dengan grup parameter default
Temukan DBCluster yang ingin Anda tingkatkan, dan templat yang Anda gunakan untuk membuatnya. Misalnya:
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
Perbarui default
DBClusterParameterGroupke yang ada di keluarga grup parameter yang digunakan oleh versi mesin baru (di sinidefault.neptune1.2).Untuk setiap yang
DBInstancedilampirkan keDBCluster, perbarui defaultDBParameterGroupke yang ada di keluarga yang digunakan oleh versi mesin baru (di sinidefault.neptune1.2).Setel
DBInstanceParameterGroupNameproperti ke grup parameter default dalam keluarga itu (di sinidefault.neptune1.2).Perbarui
EngineVersionproperti dari1.1.0.0ke1.2.0.2.
Template akan terlihat seperti ini:
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:
Sekarang gunakan AWS CloudFormation untuk menjalankan template yang direvisi.