@studion/infra-code-blocks 0.6.11 → 0.6.12

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.
package/README.md CHANGED
@@ -377,6 +377,7 @@ type DatabaseArgs = {
377
377
  instanceClass?: pulumi.Input<string>;
378
378
  enableMonitoring?: pulumi.Input<boolean>;
379
379
  parameterGroupName?: pulumi.Input<string>;
380
+ engineVersion?: pulumi.Input<string>;
380
381
  tags?: pulumi.Input<{
381
382
  [key: string]: pulumi.Input<string>;
382
383
  }>;
@@ -420,6 +421,7 @@ type DatabaseReplicaArgs = {
420
421
  maxAllocatedStorage?: pulumi.Input<number>;
421
422
  instanceClass?: pulumi.Input<string>;
422
423
  parameterGroupName?: pulumi.Input<string>;
424
+ engineVersion?: pulumi.Input<string>;
423
425
  tags?: pulumi.Input<{
424
426
  [key: string]: pulumi.Input<string>;
425
427
  }>;
@@ -48,6 +48,10 @@ export type DatabaseReplicaArgs = {
48
48
  * DB parameters to this instance.
49
49
  */
50
50
  parameterGroupName?: pulumi.Input<string>;
51
+ /**
52
+ * The DB engine version. Defaults to '15.5'.
53
+ */
54
+ engineVersion?: pulumi.Input<string>;
51
55
  /**
52
56
  * A map of tags to assign to the resource.
53
57
  */
@@ -11,6 +11,7 @@ const defaults = {
11
11
  maxAllocatedStorage: 100,
12
12
  instanceClass: 'db.t4g.micro',
13
13
  enableMonitoring: false,
14
+ engineVersion: '15.5',
14
15
  };
15
16
  class DatabaseReplica extends pulumi.ComponentResource {
16
17
  constructor(name, args, opts = {}) {
@@ -32,7 +33,7 @@ class DatabaseReplica extends pulumi.ComponentResource {
32
33
  performanceInsightsRetentionPeriod: 7,
33
34
  }
34
35
  : {};
35
- const instance = new aws.rds.Instance(`${this.name}-rds`, Object.assign(Object.assign({ identifierPrefix: `${this.name}-`, engine: 'postgres', engineVersion: '15.5', allocatedStorage: argsWithDefaults.allocatedStorage, maxAllocatedStorage: argsWithDefaults.maxAllocatedStorage, instanceClass: argsWithDefaults.instanceClass, dbSubnetGroupName: argsWithDefaults.dbSubnetGroupName, vpcSecurityGroupIds: [argsWithDefaults.dbSecurityGroupId], storageEncrypted: true, multiAz: argsWithDefaults.multiAz, publiclyAccessible: false, applyImmediately: argsWithDefaults.applyImmediately, autoMinorVersionUpgrade: true, maintenanceWindow: 'Mon:07:00-Mon:07:30', replicateSourceDb: argsWithDefaults.replicateSourceDb, parameterGroupName: argsWithDefaults.parameterGroupName, skipFinalSnapshot: true }, monitoringOptions), { tags: Object.assign(Object.assign({}, constants_1.commonTags), argsWithDefaults.tags) }), { parent: this });
36
+ const instance = new aws.rds.Instance(`${this.name}-rds`, Object.assign(Object.assign({ identifierPrefix: `${this.name}-`, engine: 'postgres', engineVersion: argsWithDefaults.engineVersion, allocatedStorage: argsWithDefaults.allocatedStorage, maxAllocatedStorage: argsWithDefaults.maxAllocatedStorage, instanceClass: argsWithDefaults.instanceClass, dbSubnetGroupName: argsWithDefaults.dbSubnetGroupName, vpcSecurityGroupIds: [argsWithDefaults.dbSecurityGroupId], storageEncrypted: true, multiAz: argsWithDefaults.multiAz, publiclyAccessible: false, applyImmediately: argsWithDefaults.applyImmediately, autoMinorVersionUpgrade: true, maintenanceWindow: 'Mon:07:00-Mon:07:30', replicateSourceDb: argsWithDefaults.replicateSourceDb, parameterGroupName: argsWithDefaults.parameterGroupName, skipFinalSnapshot: true }, monitoringOptions), { tags: Object.assign(Object.assign({}, constants_1.commonTags), argsWithDefaults.tags) }), { parent: this });
36
37
  return instance;
37
38
  }
38
39
  }
@@ -63,11 +63,15 @@ export type DatabaseArgs = {
63
63
  */
64
64
  parameterGroupName?: pulumi.Input<string>;
65
65
  /**
66
- * Specifies whether or not to create this database from a snapshot.
66
+ * Specifies whether to create this database from a snapshot.
67
67
  * This correlates to the snapshot ID you'd find in the RDS console,
68
68
  * e.g: rds:production-2015-06-26-06-05.
69
69
  */
70
70
  snapshotIdentifier?: pulumi.Input<string>;
71
+ /**
72
+ * The DB engine version. Defaults to '15.5'.
73
+ */
74
+ engineVersion?: pulumi.Input<string>;
71
75
  /**
72
76
  * A map of tags to assign to the resource.
73
77
  */
@@ -14,6 +14,7 @@ const defaults = {
14
14
  instanceClass: 'db.t4g.micro',
15
15
  enableMonitoring: false,
16
16
  allowMajorVersionUpgrade: false,
17
+ engineVersion: '15.5',
17
18
  };
18
19
  class Database extends pulumi.ComponentResource {
19
20
  constructor(name, args, opts = {}) {
@@ -110,7 +111,7 @@ class Database extends pulumi.ComponentResource {
110
111
  performanceInsightsRetentionPeriod: 7,
111
112
  }
112
113
  : {};
113
- const instance = new aws.rds.Instance(`${this.name}-rds`, Object.assign(Object.assign({ identifierPrefix: `${this.name}-`, engine: 'postgres', engineVersion: '15.5', allocatedStorage: argsWithDefaults.allocatedStorage, maxAllocatedStorage: argsWithDefaults.maxAllocatedStorage, instanceClass: argsWithDefaults.instanceClass, dbName: argsWithDefaults.dbName, username: argsWithDefaults.username, password: this.password.value, dbSubnetGroupName: this.dbSubnetGroup.name, vpcSecurityGroupIds: [this.dbSecurityGroup.id], storageEncrypted: true, kmsKeyId: this.kms.arn, multiAz: argsWithDefaults.multiAz, publiclyAccessible: false, skipFinalSnapshot: argsWithDefaults.skipFinalSnapshot, applyImmediately: argsWithDefaults.applyImmediately, autoMinorVersionUpgrade: true, maintenanceWindow: 'Mon:07:00-Mon:07:30', finalSnapshotIdentifier: `${this.name}-final-snapshot-${stack}`, backupWindow: '06:00-06:30', backupRetentionPeriod: 14, caCertIdentifier: 'rds-ca-rsa2048-g1', parameterGroupName: argsWithDefaults.parameterGroupName, allowMajorVersionUpgrade: argsWithDefaults.allowMajorVersionUpgrade, snapshotIdentifier: (_a = this.encryptedSnapshotCopy) === null || _a === void 0 ? void 0 : _a.targetDbSnapshotIdentifier }, monitoringOptions), { tags: Object.assign(Object.assign({}, constants_1.commonTags), argsWithDefaults.tags) }), { parent: this, dependsOn: [this.password] });
114
+ const instance = new aws.rds.Instance(`${this.name}-rds`, Object.assign(Object.assign({ identifierPrefix: `${this.name}-`, engine: 'postgres', engineVersion: argsWithDefaults.engineVersion, allocatedStorage: argsWithDefaults.allocatedStorage, maxAllocatedStorage: argsWithDefaults.maxAllocatedStorage, instanceClass: argsWithDefaults.instanceClass, dbName: argsWithDefaults.dbName, username: argsWithDefaults.username, password: this.password.value, dbSubnetGroupName: this.dbSubnetGroup.name, vpcSecurityGroupIds: [this.dbSecurityGroup.id], storageEncrypted: true, kmsKeyId: this.kms.arn, multiAz: argsWithDefaults.multiAz, publiclyAccessible: false, skipFinalSnapshot: argsWithDefaults.skipFinalSnapshot, applyImmediately: argsWithDefaults.applyImmediately, autoMinorVersionUpgrade: true, maintenanceWindow: 'Mon:07:00-Mon:07:30', finalSnapshotIdentifier: `${this.name}-final-snapshot-${stack}`, backupWindow: '06:00-06:30', backupRetentionPeriod: 14, caCertIdentifier: 'rds-ca-rsa2048-g1', parameterGroupName: argsWithDefaults.parameterGroupName, allowMajorVersionUpgrade: argsWithDefaults.allowMajorVersionUpgrade, snapshotIdentifier: (_a = this.encryptedSnapshotCopy) === null || _a === void 0 ? void 0 : _a.targetDbSnapshotIdentifier }, monitoringOptions), { tags: Object.assign(Object.assign({}, constants_1.commonTags), argsWithDefaults.tags) }), { parent: this, dependsOn: [this.password] });
114
115
  return instance;
115
116
  }
116
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studion/infra-code-blocks",
3
- "version": "0.6.11",
3
+ "version": "0.6.12",
4
4
  "description": "Studion common infra components",
5
5
  "keywords": [
6
6
  "infrastructure",