Skip to content

Commit 5ef3d12

Browse files
committed
Change rds final snapshot version
1 parent 023d52c commit 5ef3d12

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
@@ -160,6 +160,7 @@ export class Database extends pulumi.ComponentResource {
160160

161161
private createDatabaseInstance(args: DatabaseArgs) {
162162
const argsWithDefaults = Object.assign({}, defaults, args);
163+
const stack = pulumi.getStack();
163164
const instance = new aws.rds.Instance(
164165
`${this.name}-rds`,
165166
{
@@ -181,7 +182,7 @@ export class Database extends pulumi.ComponentResource {
181182
applyImmediately: argsWithDefaults.applyImmediately,
182183
autoMinorVersionUpgrade: true,
183184
maintenanceWindow: 'Mon:07:00-Mon:07:30',
184-
finalSnapshotIdentifier: `${this.name}-final-snapshot`,
185+
finalSnapshotIdentifier: `${this.name}-final-snapshot-${stack}`,
185186
backupWindow: '06:00-06:30',
186187
backupRetentionPeriod: 14,
187188
tags: { ...commonTags, ...argsWithDefaults.tags },

0 commit comments

Comments
 (0)