Skip to main content

rds

Overview of the rds module in the @serverless-stack/node package.

import { ... } from "@serverless-stack/node/rds"

The rds module has the following exports.


Properties

The properties let you access the resources that are bound to the function.


RDS

This module helps with accessing RDS constructs.

import { RDS } from "@serverless-stack/node/rds";

clusterArn

Type : string

The ARN of the RDS Serverless Cluster.

console.log(RDS.myDatabase.clusterArn);

secretArn

Type : string

The ARN of the Secrets Manager Secret for the RDS Serverless Cluster.

console.log(RDS.myDatabase.secretArn);

defaultDatabaseName

Type : string

The default database name of the RDS Serverless Cluster.

console.log(RDS.myDatabase.defaultDatabaseName);