File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments