Skip to content

Commit

Permalink
construct/rds - allow postgresql engines 14.10, 15.4 and 16.1 (#3745)
Browse files Browse the repository at this point in the history
* construct/rds - allow postgresql engines 14.10, 15.4 and 16.1

* Sync

---------

Co-authored-by: Tommy Durand <t.durand.ext@bloomsocialanalytics.com>
Co-authored-by: Frank <frank@sst.dev>
  • Loading branch information
3 people committed Apr 24, 2024
1 parent 0acf9c6 commit 3835298
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/little-grapes-try.md
@@ -0,0 +1,5 @@
---
"sst": patch
---

RDS: support postgresql engines 14.10, 15.4 and 16.1
17 changes: 16 additions & 1 deletion packages/sst/src/constructs/RDS.ts
Expand Up @@ -48,7 +48,10 @@ export interface RDSProps {
| "mysql8.0"
| "postgresql11.13"
| "postgresql11.16"
| "postgresql13.9";
| "postgresql13.9"
| "postgresql14.10"
| "postgresql15.5"
| "postgresql16.1";

/**
* Name of a database which is automatically created inside the cluster.
Expand Down Expand Up @@ -443,6 +446,18 @@ export class RDS extends Construct implements SSTConstruct {
return DatabaseClusterEngine.auroraPostgres({
version: AuroraPostgresEngineVersion.VER_13_9,
});
} else if (engine === "postgresql14.10") {
return DatabaseClusterEngine.auroraPostgres({
version: AuroraPostgresEngineVersion.VER_14_10,
});
} else if (engine === "postgresql15.5") {
return DatabaseClusterEngine.auroraPostgres({
version: AuroraPostgresEngineVersion.VER_15_5,
});
} else if (engine === "postgresql16.1") {
return DatabaseClusterEngine.auroraPostgres({
version: AuroraPostgresEngineVersion.VER_16_1,
});
}

throw new Error(
Expand Down

0 comments on commit 3835298

Please sign in to comment.