Skip to content

Commit

Permalink
add postgresq13.12 as an option - RDS.ts (#3759)
Browse files Browse the repository at this point in the history
* add postgresq13.12 as an option - RDS.ts

There are cases of people that have deployed postgresql11.13, which now appears as deprecated, and can't be deployed anymore. For those cases, they can modify by rds console to version 13.12 and the deploy postgresql13.12. To do that we need to add this option.

* Sync

---------

Co-authored-by: Frank <frank@sst.dev>
  • Loading branch information
adminCitify and fwang committed May 17, 2024
1 parent 1706947 commit b51f1fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/kind-bears-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"sst": patch
---

RDS: support postgresql13.12
7 changes: 6 additions & 1 deletion packages/sst/src/constructs/RDS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface RDSProps {
| "mysql8.0"
| "postgresql11.13"
| "postgresql11.16"
| "postgresql13.12"
| "postgresql13.9"
| "postgresql14.10"
| "postgresql15.5"
Expand Down Expand Up @@ -442,6 +443,10 @@ export class RDS extends Construct implements SSTConstruct {
return DatabaseClusterEngine.auroraPostgres({
version: AuroraPostgresEngineVersion.VER_11_16,
});
} else if (engine === "postgresql13.12") {
return DatabaseClusterEngine.auroraPostgres({
version: AuroraPostgresEngineVersion.VER_13_12,
});
} else if (engine === "postgresql13.9") {
return DatabaseClusterEngine.auroraPostgres({
version: AuroraPostgresEngineVersion.VER_13_9,
Expand All @@ -461,7 +466,7 @@ export class RDS extends Construct implements SSTConstruct {
}

throw new Error(
`The specified "engine" is not supported for sst.RDS. Only mysql5.6, mysql5.7, postgresql11.13, postgresql11.16, and postgres13.9 engines are currently supported.`
`The specified "engine" is not supported for sst.RDS. Only mysql5.6, mysql5.7, postgresql11.13, postgresql11.16, postgresql13.12, and postgresql13.9 engines are currently supported.`
);
}

Expand Down

0 comments on commit b51f1fb

Please sign in to comment.