# Can't connect to AWS postgres RDS custom database

**URL:** <https://community.auth0.com/t/cant-connect-to-aws-postgres-rds-custom-database/37207>\
**Category:** Get Help\
**Tags:** custom-database\
**Created:** [February 1, 2020, 4:21pm UTC](https://community.auth0.com/t/cant-connect-to-aws-postgres-rds-custom-database/37207 "2020-02-01T16:21:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![siggyt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/siggyt/32/12822_2.png) [@siggyt](https://community.auth0.com/u/siggyt)\
**Post date:** [February 1, 2020, 4:21pm UTC](https://community.auth0.com/t/cant-connect-to-aws-postgres-rds-custom-database/37207/1 "2020-02-01T16:21:20Z")

</div>

Hi,

I created a postgres RDS in AWS as a custom database for my test tenant. I am able to connect to it using Postico (working on a mac). I’ve entered in the url for the connection string according to the Login and Get User template:

postgres://${configuration.user}:${configuration.pass}@..us-west-2.rds.amazonaws.com;

When I try to connect I get the following error:

{  
“error”: “invalid\_request”,  
“error\_description”: “the connection was disabled”  
}

1. How do I set the port number in the script
2. Is there an IAM role that I need to create in my AWS account in order for the connection to work?
3. I am attempting to migrate JSON from a different tenant (can import the file into the Auth0 database so I know the data format is correct. Do I need to have a users table in the database in order to import the data or will that table be created during the import process once I can connect?

Thank you,

Siggy

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [February 1, 2020, 5:52pm UTC](https://community.auth0.com/t/cant-connect-to-aws-postgres-rds-custom-database/37207/2 "2020-02-01T17:52:34Z")

</div>

Hello @siggyt,

“the connection was disabled” usually means you haven’t enabled that connection for at least one application. Can you confirm you have enabled the connection for at least one app?

 ![Screen Shot 2020-02-01 at 12.51.50 PM](https://global.discourse-cdn.com/auth0/original/3X/1/a/1af7a4111e0f4b7b3b018d33ec1ce4c6229e2c57.png)

---

<div class="post-metadata">

**Author:** ![siggyt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/siggyt/32/12822_2.png) [@siggyt](https://community.auth0.com/u/siggyt)\
**Post date:** [February 10, 2020, 5:22am UTC](https://community.auth0.com/t/cant-connect-to-aws-postgres-rds-custom-database/37207/3 "2020-02-10T05:22:19Z")

</div>

Hi,

I am still struggling to connect to the postgres RDS. I keep hitting the same error whether I am using encryted or unencrypted user and password:

[error] 28P01 - password authentication failed for user

---

<div class="post-metadata">

**Author:** ![siggyt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/siggyt/32/12822_2.png) [@siggyt](https://community.auth0.com/u/siggyt)\
**Post date:** [February 10, 2020, 5:56am UTC](https://community.auth0.com/t/cant-connect-to-aws-postgres-rds-custom-database/37207/4 "2020-02-10T05:56:20Z")

</div>

Solved - I did not have ssh open in my security group for the RDS.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 10, 2020, 7:42am UTC](https://community.auth0.com/t/cant-connect-to-aws-postgres-rds-custom-database/37207/5 "2020-02-10T07:42:21Z")

</div>

Perfect to hear that! Glad you have it working and thanks for sharing!

---

<div class="post-metadata">

**Author:** ![siggyt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/siggyt/32/12822_2.png) [@siggyt](https://community.auth0.com/u/siggyt)\
**Post date:** [February 10, 2020, 3:08pm UTC](https://community.auth0.com/t/cant-connect-to-aws-postgres-rds-custom-database/37207/6 "2020-02-10T15:08:44Z")

</div>

Hi Konrad,

Thank you - yes, I was very happy to see it working.

I did want to mention that I am not receiving a verification email when I try to add users. The user is getting adding to the database, but I am not getting an email. How might I fix that?

Thanks,

Siggy

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 11, 2020, 10:54am UTC](https://community.auth0.com/t/cant-connect-to-aws-postgres-rds-custom-database/37207/7 "2020-02-11T10:54:58Z")

</div>

Hey there @siggyt!

It seems that this issue is a bit off the topic here. Can you open a separate topic for that? It will . make the navigation and searchability clearer for all users. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 26, 2020, 10:55am UTC](https://community.auth0.com/t/cant-connect-to-aws-postgres-rds-custom-database/37207/8 "2020-02-26T10:55:00Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
