resolve-storage-postgresql-serverless
v0.23.2
Published
An adapter reSolve uses to store events in PostgreSQL Serverless.
Downloads
71
Readme
resolve-storage-postgresql-serverless
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'
})