From 57be736407ef3ef8225fcd26495bc95a7568f7cc Mon Sep 17 00:00:00 2001 From: Rubens Panfili Date: Thu, 20 Jun 2019 19:39:30 +0200 Subject: [PATCH] fix(rds): DatabaseCluster exposes read endpoint Fix a typo that exposes cluster write endpoint as `clusterReadEndpoint` on RDS DatabaseCluster fixes #2969 --- packages/@aws-cdk/aws-rds/lib/cluster.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@aws-cdk/aws-rds/lib/cluster.ts b/packages/@aws-cdk/aws-rds/lib/cluster.ts index 3f108534ff012..9c2b9b7d86d80 100644 --- a/packages/@aws-cdk/aws-rds/lib/cluster.ts +++ b/packages/@aws-cdk/aws-rds/lib/cluster.ts @@ -330,7 +330,7 @@ export class DatabaseCluster extends DatabaseClusterBase { // create a number token that represents the port of the cluster const portAttribute = Token.asNumber(cluster.attrEndpointPort); this.clusterEndpoint = new Endpoint(cluster.attrEndpointAddress, portAttribute); - this.clusterReadEndpoint = new Endpoint(cluster.attrEndpointAddress, portAttribute); + this.clusterReadEndpoint = new Endpoint(cluster.attrReadEndpointAddress, portAttribute); if (secret) { this.secret = secret.addTargetAttachment('AttachedSecret', {