Skip to content

Conversation

@phuhung273
Copy link
Contributor

Issue # (if applicable)

Closes #14186

Reason for this change

Add DatabaseProxyEndpoint L2 construct

Description of changes

  • Add DatabaseProxyEndpoint L2 construct
  • DatabaseProxy support method addEndpoint

Describe any new or updated permissions being added

Description of how you validated changes

Unit + Integ

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team July 25, 2025 05:59
@github-actions github-actions bot added star-contributor [Pilot] contributed between 25-49 PRs to the CDK effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p1 labels Jul 25, 2025
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 0ec73b1
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

@abidhasan-aws abidhasan-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @phuhung273
Thanks for your contribution.

I have left some comments :)

*
* @default - CloudFormation-generated name
*/
readonly dbProxyEndpointName?: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the AWS::RDS::DBProxyEndpoint resource in AWS CloudFormation, the dbProxyEndpointName property is required and is not automatically generated. Suggestion: we can make the field required and update the documentation accordingly.

And even if we want to generate the name, the docs should tell that it's "cdk generated" and not "cloudformation generated"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is true that dbProxyEndpointName is required for CloudFormation, CLI,... But I saw the pattern from proxy.ts to take input or generate one and think this way has better user experience.

const physicalName = props.dbProxyName || (
cdk.FeatureFlags.of(this).isEnabled(cxapi.DATABASE_PROXY_UNIQUE_RESOURCE_NAME) ?
cdk.Names.uniqueResourceName(this, { maxLength: 60 }) : id
);

So I've updated the docstring to CDK generated. Let me know what you think.

@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Sep 3, 2025
@mergify mergify bot dismissed abidhasan-aws’s stale review September 4, 2025 00:20

Pull request has been modified.

Copy link
Contributor

@abidhasan-aws abidhasan-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the changes promptly :)

@mergify
Copy link
Contributor

mergify bot commented Sep 4, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Sep 4, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 04d8a95 into aws:main Sep 4, 2025
19 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2025

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2025
@phuhung273 phuhung273 deleted the rds-proxy-endpoint branch September 4, 2025 15:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p1 star-contributor [Pilot] contributed between 25-49 PRs to the CDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RDS: add support for creating Proxy endpoints

3 participants