Skip to content

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

Open
@mnkasikci

Description

@mnkasikci

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting reporter responseNeeds clarification or followup from OPbugSomething that isn't workinghyperdriveinternalRequires support from the Cloudflare Platform

    Type

    No type

    Projects

    Status

    Other

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions