@@ -65,11 +65,15 @@ export type DatabaseArgs = {
6565 */
6666 parameterGroupName ?: pulumi . Input < string > ;
6767 /**
68- * Specifies whether or not to create this database from a snapshot.
68+ * Specifies whether to create this database from a snapshot.
6969 * This correlates to the snapshot ID you'd find in the RDS console,
7070 * e.g: rds:production-2015-06-26-06-05.
7171 */
7272 snapshotIdentifier ?: pulumi . Input < string > ;
73+ /**
74+ * The DB engine version. Defaults to '15.5'.
75+ */
76+ engineVersion ?: pulumi . Input < string > ;
7377 /**
7478 * A map of tags to assign to the resource.
7579 */
@@ -87,6 +91,7 @@ const defaults = {
8791 instanceClass : 'db.t4g.micro' ,
8892 enableMonitoring : false ,
8993 allowMajorVersionUpgrade : false ,
94+ engineVersion : '15.5' ,
9095} ;
9196
9297export class Database extends pulumi . ComponentResource {
@@ -252,7 +257,7 @@ export class Database extends pulumi.ComponentResource {
252257 {
253258 identifierPrefix : `${ this . name } -` ,
254259 engine : 'postgres' ,
255- engineVersion : '15.5' ,
260+ engineVersion : argsWithDefaults . engineVersion ,
256261 allocatedStorage : argsWithDefaults . allocatedStorage ,
257262 maxAllocatedStorage : argsWithDefaults . maxAllocatedStorage ,
258263 instanceClass : argsWithDefaults . instanceClass ,
0 commit comments