Skip to content

Commit 6936035

Browse files
committed
fix: remove @ character from RDS password generation
AWS RDS doesn't allow @ character in passwords. Also renamed the password resource to force regeneration of a new compliant password.
1 parent 3d1de1d commit 6936035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/infra/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ const dbSubnetGroup = new aws.rds.SubnetGroup("pathfinder-db-subnet-group", {
126126
});
127127

128128
// Generate a secure random password for the database
129-
const dbPassword = new random.RandomPassword("pathfinder-db-password", {
129+
const dbPassword = new random.RandomPassword("pathfinder-db-password-v2", {
130130
length: 32,
131131
special: true,
132-
overrideSpecial: "!@#$%&*()-_=+[]{}<>:?", // Avoid problematic characters in connection strings
132+
overrideSpecial: "!#$%&*()-_=+[]{}<>:?", // RDS doesn't allow: / @ " space
133133
});
134134

135135
// RDS PostgreSQL Instance

0 commit comments

Comments
 (0)