Skip to content

Commit

Permalink
Add default database name to cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Jul 5, 2023
1 parent d4a6bc2 commit 4ca8f4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure/cdk/src/providers/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ export class UsersStack extends cdk.Stack {
secretName: kebabCase(config.getFullStackResourceName(this.name, 'db-credentials')),
generateSecretString: {
secretStringTemplate: JSON.stringify({
username: 'postgres',
dbname: this.name,
username: 'postgres'
}),
generateStringKey: 'password',
passwordLength: 30,
Expand All @@ -95,6 +94,7 @@ export class UsersStack extends cdk.Stack {
version: rds.AuroraPostgresEngineVersion.VER_15_2
}),
credentials: rds.Credentials.fromSecret(dbCredentials),
defaultDatabaseName: this.name,
instances: 1,
instanceProps: {
instanceType: new ec2.InstanceType('serverless'),
Expand Down

0 comments on commit 4ca8f4d

Please sign in to comment.