Skip to content

Commit

Permalink
fix(rds): DatabaseCluster exposes read endpoint
Browse files Browse the repository at this point in the history
Fix a typo that exposes cluster write endpoint as `clusterReadEndpoint`
on RDS DatabaseCluster

fixes aws#2969
  • Loading branch information
rpanfili committed Jun 20, 2019
1 parent 0dabb02 commit 57be736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-rds/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit 57be736

Please sign in to comment.