Skip to content

Commit

Permalink
Allow major versions upgrade if creating from snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ikovac committed Aug 19, 2024
1 parent a4c0d7f commit 3658313
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,10 @@ export class Database extends pulumi.ComponentResource {
backupRetentionPeriod: 14,
caCertIdentifier: 'rds-ca-rsa2048-g1',
parameterGroupName: argsWithDefaults.parameterGroupName,
...monitoringOptions,
allowMajorVersionUpgrade: Boolean(argsWithDefaults.snapshotIdentifier),
snapshotIdentifier:
this.encryptedSnapshotCopy?.targetDbSnapshotIdentifier,
...monitoringOptions,
tags: { ...commonTags, ...argsWithDefaults.tags },
},
{ parent: this, dependsOn: [this.password] },
Expand Down

0 comments on commit 3658313

Please sign in to comment.