fix(infra): Aurora engine 15.4 -> 15.17 (15.4 retired by RDS, deploy failed) (#228)

First prod deploy failed: RDS returned 'Cannot find version 15.4 for aurora-postgresql'
(minor version retired). Bump to latest available 15.x (15.17); stays on major 15 for
pgvector / ADR 0001. Clean create — the failed stack rolled back, no cluster persisted.
This commit is contained in:
Adam Moussa 2026-07-15 15:01:50 -04:00 • committed by GitHub
parent 0f9d27fbf0
commit 0c5b294ffc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -94,8 +94,10 @@ export class FoundationStack extends cdk.Stack {
// not permitted"). A distinct ID makes it a clean replace instead.
const dbCluster = new rds.DatabaseCluster(this, 'AuroraCluster', {
clusterIdentifier: `proposal-system-db${config.stackSuffix}`,
// 15.17 = latest available aurora-postgresql 15.x (15.4 was retired by RDS —
// "Cannot find version 15.4"). Stays on major 15 for pgvector / ADR 0001 compat.
engine: rds.DatabaseClusterEngine.auroraPostgres({
version: rds.AuroraPostgresEngineVersion.VER_15_4,
version: rds.AuroraPostgresEngineVersion.VER_15_17,
}),
vpc: this.vpc,
vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS },