resolve-storage-postgresql-serverless

0.23.2 • Public • Published

resolve-storage-postgresql-serverless

npm version

This package is a resolve-es adapter for storing events using AWS Aurora Serverless PostgreSQL 10.7.

Available Parameters

  • databaseName - a name of a database storing events.
  • tableName - a name of a table storing events.
  • awsSecretStoreArn - an AWS Secret store ARN.
  • dbClusterOrInstanceArn - a database cluster or instance ARN.
  • region - an AWS region.

Usage

import createAdapter from 'resolve-storage-postgresql-serverless'
 
const adapter = createAdapter({
  region: 'us-east-1',
  databaseName: 'databaseName',
  tableName: 'tableName',
  awsSecretStoreArn: 'awsSecretStoreArn',
  dbClusterOrInstanceArn: 'dbClusterOrInstanceArn'
})

As Resource

import { create, dispose, destroy } from 'resolve-storage-postgresql-serverless'
 
await create({ 
  region: 'us-east-1',
  awsSecretStoreAdminArn: 'awsSecretStoreAdminArn',
  dbClusterOrInstanceArn: 'dbClusterOrInstanceArn',
  databaseName: 'creatingDatabaseName',
  tableName: 'creatingTableName',
  userLogin: 'creatingUserLogin',
  userPassword: 'creatingUserPassword'
})
 
await dispose({ 
  region: 'us-east-1',
  awsSecretStoreAdminArn: 'awsSecretStoreAdminArn',
  dbClusterOrInstanceArn: 'dbClusterOrInstanceArn',
  databaseName: 'disposingDatabaseName',
  tableName: 'disposingTableName',
  userLogin: 'disposingUserLogin',
  userPassword: 'disposingUserPassword'
})
 
await destroy({ 
  region: 'us-east-1',
  awsSecretStoreAdminArn: 'awsSecretStoreAdminArn',
  dbClusterOrInstanceArn: 'dbClusterOrInstanceArn',
  databaseName: 'destroyingDatabaseName',
  userLogin: 'destroyingUserLogin'
})

Analytics

Package Sidebar

Install

npm i resolve-storage-postgresql-serverless

Weekly Downloads

3

Version

0.23.2

License

MIT

Unpacked Size

214 kB

Total Files

98

Last publish

Collaborators

  • resolve-admin
  • reimagined-admin
  • vladihost
  • lykoi18