question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

class CfnDBCluster missing EnableHttpEndpoint property

See original GitHub issue

Allow setting EnableHttpEndpoint boolean-property for CfnDBCluster in RDS module.

Use Case

We need this feature for configuring Aurora Serverless cluster with Data API.

Currently we have to solve this by using hacky CloudFormation custom resource which invokes a Python Lambda function where Boto3 enables the Data API:

client = boto3.client('rds')
client.modify_db_cluster(
  DBClusterIdentifier=database_cluster_identifier,
  EnableHttpEndpoint=True
)

This feels completely unnecessary and it’s also error-prone.

Proposed Solution

CloudFormation released support for EnableHttpEndpoint in November 21st 2019: Screenshot 2019-11-27 at 16 31 29

As EnableHttpEndpoint is now available in CloudFormation for AWS::RDS::DBCluster resource it’d be nice if that same property would be available for CDK’s CfnDBCluster class.

This would allow people to get rid of hacky and error-prone CloudFormation custom resources that are only used for enabling the Data API.

  • 👋 I may be able to implement this feature request

This is a 🚀 Feature Request

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
skinny85commented, Dec 8, 2019

Actually, it was done here: https://github.com/aws/aws-cdk/pull/5297/files?file-filters[]=.json#diff-8e1268ed8f9bcc6e8d19f5283fcd7779R46731

Just waiting on the latest release 1.19.0 to have it available.

0reactions
skinny85commented, Dec 23, 2019

Cool, thanks for checking @metaskills . Resolving.

Read more comments on GitHub >

github_iconTop Results From Across the Web

class CfnDBCluster (construct) · AWS CDK
enableHttpEndpoint ? boolean | IResolvable, A value that indicates whether to enable the HTTP endpoint for an Aurora Serverless DB cluster.
Read more >
CreateDBCluster - Amazon Relational Database Service
Type: Boolean. Required: No. EnableHttpEndpoint. A value that indicates whether to enable the HTTP endpoint for an Aurora Serverless v1 DB cluster.
Read more >
awsrds - Go Packages
Properties for defining a `CfnDBCluster`. Example: // The code below shows an example of how to instantiate this type. // The values are...
Read more >
modify-db-cluster — AWS CLI 2.9.9 Command Reference - rds
You can only modify scaling properties for DB clusters in serverless DB engine mode. ... --enable-http-endpoint | --no-enable-http-endpoint (boolean).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found