Skip to content

Commit 3658313

Browse files
committed
Allow major versions upgrade if creating from snapshot
1 parent a4c0d7f commit 3658313

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/database.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,10 @@ export class Database extends pulumi.ComponentResource {
268268
backupRetentionPeriod: 14,
269269
caCertIdentifier: 'rds-ca-rsa2048-g1',
270270
parameterGroupName: argsWithDefaults.parameterGroupName,
271-
...monitoringOptions,
271+
allowMajorVersionUpgrade: Boolean(argsWithDefaults.snapshotIdentifier),
272272
snapshotIdentifier:
273273
this.encryptedSnapshotCopy?.targetDbSnapshotIdentifier,
274+
...monitoringOptions,
274275
tags: { ...commonTags, ...argsWithDefaults.tags },
275276
},
276277
{ parent: this, dependsOn: [this.password] },

0 commit comments

Comments
 (0)