Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aws-rds] Timed out waiting for target group (CfnDBProxyTargetGroup) to become available. #8919

Closed
civilizeddev opened this issue Jul 7, 2020 · 4 comments
Assignees
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database bug This issue is a bug. effort/small Small work item – less than a day of effort p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@civilizeddev
Copy link
Contributor

There is no way to validate a wrong configuration on DBProxy's security group.

That is, there is no way to verify the connection from the proxy to the DB.

Originally posted by @tbrand in #8885 (comment)

The connection from the proxy to the DB should be once established on creating DB Target Group.

Or, it will time out on cdk deploy

With wrong security groups it may fail. It's okay.

But I'm afraid it would make cdk users confused and embarrassed.

Q. Is it possible to prevent cdk from waiting for the target group to become available? @nija-at

Reproduction Steps

  1. Given an existing RDS instance(or cluster).
  2. Create a DatabaseProxy from the instance(or cluster) with a security group but not accessible to the RDS instance.
  3. $ cdk deploy

Error Log

After several minutes:

Timed out waiting for target group to become available.

Environment

  • CLI Version : aws-cli/2.0.28 Python/3.8.3 Darwin/19.5.0 botocore/2.0.0dev32
  • Framework Version: 1.49.1
  • Node.js Version: v14.5.0
  • OS : macos 10.15.5
  • Language (Version): TypeScript 3.9.6

Other

In the Management Console, or with AWS CLI, you can create a proxy (no time out), but the target group will remain unavailable


This is 🐛 Bug Report

@civilizeddev civilizeddev added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jul 7, 2020
@github-actions github-actions bot added the @aws-cdk/aws-rds Related to Amazon Relational Database label Jul 7, 2020
@nija-at nija-at assigned skinny85 and unassigned nija-at Jul 14, 2020
@skinny85
Copy link
Contributor

skinny85 commented Sep 5, 2020

Thanks @civilizeddev . Looks like we should create a new Security Group if one wasn't passed here.

@skinny85 skinny85 added effort/small Small work item – less than a day of effort p2 and removed needs-triage This issue or PR still needs to be triaged. labels Sep 5, 2020
@civilizeddev
Copy link
Contributor Author

There is no way to verify that the target DB instance/cluster has an incoming rule accessible from the provided security groups.

@skinny85
Copy link
Contributor

Hey @civilizeddev ,

I believe this was fixed in #12953. Can you verify?

Thanks,
Adam

@skinny85 skinny85 added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Apr 26, 2021
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database bug This issue is a bug. effort/small Small work item – less than a day of effort p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

3 participants