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

🐛 BUG: Can't create a Hyperdrive configuration using an Amazon RDS Database #8095

Open
mnkasikci opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something that isn't working hyperdrive

Comments

@mnkasikci
Copy link

Which Cloudflare product(s) does this pertain to?

Other

What versions are you using?

3.107.3 [Wrangler]

What operating system and version are you using?

macOs Sequoia 15.3

Please provide a link to a minimal reproduction

No response

Describe the Bug

When I try to create a hyperdrive config and provide my amazon rds database credentials, it always fails.

Steps to reproduce:

Option 1:

1- Go to Storage & Databases => Hyperdrive => Create configuration
2- Select Manual entry (advanced)
3- Enter credentials , click Create.

It fails, here is the response :

{
  "result": null,
  "success": false,
  "errors": [
    {
      "code": 2015,
      "message": "Failed to connect to the provided database: Server connection attempt failed: destination_ip_prohibited"
    }
  ],
  "messages": null
}

Option 2

From zsh terminal:

npx wrangler hyperdrive create my-first-hyperdrive --connection-string="postgres://db-name:mypassword@host-url:5432/db-name"

result:

  Failed to connect to the provided database: Server connection attempt failed:
  destination_ip_prohibited [code: 2015]
  
  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/workers-sdk/issues/new/choose

Things I've already checked:
1- I am confident that the credentials are correct
2- I am confident that the db is publicly accessible. I've accessed it from different locations
3- I've created a firewall policy (dns) with the following options:

Host
matches regex
.*\.rds\.amazonaws\.com
Or
DNS Resolver IP
is
--my database ip--
Or
Domain
matches regex
.*\.rds\.amazonaws\.com
Or
Resolved IP
is
--my database ip--

Action: Allow

4- I've created a firewall policy (network) with the following options:

Traffic
Application
in
AWS (Do Not Inspect)
Or
Destination IP
is
--my database ip--
Or
SNI
matches regex
.*\.rds\.amazonaws\.com

Action: Allow

Both policies are active.

None of the steps above resolved theissue.

Please provide any relevant error logs

Wrangler response:

  Failed to connect to the provided database: Server connection attempt failed:
  destination_ip_prohibited [code: 2015]
  
  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/workers-sdk/issues/new/choose

Http response (from cloudflare dashboard)

{
  "result": null,
  "success": false,
  "errors": [
    {
      "code": 2015,
      "message": "Failed to connect to the provided database: Server connection attempt failed: destination_ip_prohibited"
    }
  ],
  "messages": null
}

The error shown in the UI is the same as the message above: Failed to connect to the provided database: Server connection attempt failed: destination_ip_prohibited

@mnkasikci mnkasikci added the bug Something that isn't working label Feb 11, 2025
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working hyperdrive
Projects
Status: Untriaged
Development

No branches or pull requests

2 participants