Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Postgres: update arg name
Browse files Browse the repository at this point in the history
  • Loading branch information
fwang committed Oct 8, 2024
1 parent eb61cda commit 719f9b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions platform/src/components/aws/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export interface PostgresArgs {
* @example
* ```js
* {
* databaseName: "acme"
* database: "acme"
* }
* ```
*/
databaseName?: Input<string>;
database?: Input<string>;
/**
* The type of instance to use for the database. Check out the [supported instance types](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.Types.html).
*
Expand Down Expand Up @@ -239,7 +239,7 @@ export class Postgres extends Component implements Link.Linkable {
const engineVersion = output(args.version).apply((v) => v ?? "16.4");
const instanceType = output(args.instance).apply((v) => v ?? "t4g.micro");
const storage = normalizeStorage();
const dbName = output(args.databaseName).apply(
const dbName = output(args.database).apply(
(v) => v ?? $app.name.replaceAll("-", "_"),
);
const vpc = normalizeVpc();
Expand Down

0 comments on commit 719f9b1

Please sign in to comment.