@studion/infra-code-blocks 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,6 +72,7 @@ class Database extends pulumi.ComponentResource {
72
72
  }
73
73
  createDatabaseInstance(args) {
74
74
  const argsWithDefaults = Object.assign({}, defaults, args);
75
+ const stack = pulumi.getStack();
75
76
  const instance = new aws.rds.Instance(`${this.name}-rds`, {
76
77
  identifierPrefix: `${this.name}-`,
77
78
  engine: 'postgres',
@@ -91,7 +92,7 @@ class Database extends pulumi.ComponentResource {
91
92
  applyImmediately: argsWithDefaults.applyImmediately,
92
93
  autoMinorVersionUpgrade: true,
93
94
  maintenanceWindow: 'Mon:07:00-Mon:07:30',
94
- finalSnapshotIdentifier: `${this.name}-final-snapshot`,
95
+ finalSnapshotIdentifier: `${this.name}-final-snapshot-${stack}`,
95
96
  backupWindow: '06:00-06:30',
96
97
  backupRetentionPeriod: 14,
97
98
  tags: Object.assign(Object.assign({}, constants_1.commonTags), argsWithDefaults.tags),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studion/infra-code-blocks",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Studion common infra components",
5
5
  "keywords": [
6
6
  "infrastructure",