@automatedna/cdk-rds-privatelink
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

RDS PrivateLink Construct for AWS CDK

build

Features

  • Creates a VPC Endpoint for PrivateLink with RDS using a network load balancer to front the connection to RDS
  • Supports tagging the VPC Endpoint that is created through a custom resource

API Doc

See API

References

Example

const vpc = new ec2.Vpc(stack, 'VPC');

const db = new rds.DatabaseInstance(stack, 'DB', {
  engine: rds.DatabaseInstanceEngine.SQL_SERVER_SE,
  vpc,
});

const topic = new DbFailureTopic(stack, 'DBFailureTopic', {
  db,
});

new rdsPrivateLink.RdsPrivateLink(stack, 'privateLink', {
  db,
  vpc,
  dbPort: rdsPrivateLink.CommonDBPorts.MSSQL,
  vpcSubnets: {
    subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS,
  },
  dbFailureTopic: topic,
});

Dependencies (0)

    Dev Dependencies (22)

    Package Sidebar

    Install

    npm i @automatedna/cdk-rds-privatelink

    Weekly Downloads

    1

    Version

    0.3.0

    License

    Apache-2.0

    Unpacked Size

    202 kB

    Total Files

    16

    Last publish

    Collaborators

    • bmiller08
    • automatedna_devops