cdk-shared-database
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

cdk-shared-database

Example

import { SharedDatabaseDatabase } from 'cdk-shared-database';
// ...
const db = new SharedDatabaseDatabase(this, 'Db', {
  databaseInstanceName: `${appName}-${stageName}`,
  sharedDatabase: {
    defaultPort: Port.tcp(5432),
    instanceIdentifier: 'shareddb-1',
    secret: 'shared/shareddb-1',
    vpc,
    securityGroups: ['sg-abc123'],
  },
  removalPolicy: RemovalPolicy.RETAIN,
});

Running unit tests

Run nx test cdk-shared-database to execute the unit tests via Jest.

Running lint

Run nx lint cdk-shared-database to execute the lint via ESLint.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i cdk-shared-database

      Weekly Downloads

      6

      Version

      0.2.5

      License

      none

      Unpacked Size

      39.1 kB

      Total Files

      24

      Last publish

      Collaborators

      • joeflateau