# Postgres connection error

**URL:** <https://community.amazonquick.com/t/postgres-connection-error/32445>\
**Category:** Q&A\
**Tags:** data-source, dataset, Business-Intelligence-Engineer, quick-sight\
**Created:** [July 10, 2024, 6:20pm UTC](https://community.amazonquick.com/t/postgres-connection-error/32445 "2024-07-10T18:20:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hojungkim](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@hojungkim](https://community.amazonquick.com/u/hojungkim)\
**Post date:** [July 10, 2024, 6:20pm UTC](https://community.amazonquick.com/t/postgres-connection-error/32445/1 "2024-07-10T18:20:24Z")

</div>

I have a database that I would like to connect through Quick Sight. I asked my coworker to change the inbound/outbound rule so that the Postgres allows Quick Sight to be connected. He used these two documents: [Authorizing connections from AWS Quick Sight to Amazon RDS DB instances - AWS Quick Sight](https://docs.aws.amazon.com/quicksight/latest/user/enabling-access-rds.html), [Create a private connection from Quick Sight to Redshift or RDS | AWS re:Post (repost.aws)](https://repost.aws/knowledge-center/quicksight-redshift-private-connection)  
However, I’m still getting the issue of connection timeout error. Does anyone know how to solve this issue?

---

<div class="post-metadata">

**Author:** ![Naveed](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/naveed/32/961_2.png) [@Naveed](https://community.amazonquick.com/u/Naveed)\
**Post date:** [July 11, 2024, 4:22am UTC](https://community.amazonquick.com/t/postgres-connection-error/32445/2 "2024-07-11T04:22:05Z")

</div>

Hi,

Check these rules

- Create or identify an IAM role associated with the Amazon Redshift cluster.
- Add the IAM policies `AmazonS3ReadOnlyAccess`and`AmazonAthenaFullAccess` to the IAM role.

> **[Authorizing connections from Amazon QuickSight to Amazon Redshift clusters -...](https://docs.aws.amazon.com/quicksight/latest/user/enabling-access-redshift.html)**
>
> Configure Amazon Redshift clusters so that Amazon QuickSight can connect to them.

Regards,  
Naveed Ali

---

<div class="post-metadata">

**Author:** ![abacon](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/abacon/32/2291_2.png) [@abacon](https://community.amazonquick.com/u/abacon)\
**Post date:** [July 16, 2024, 11:26am UTC](https://community.amazonquick.com/t/postgres-connection-error/32445/3 "2024-07-16T11:26:05Z")

</div>

Hi @hojungkim,  
I’m just checking if you need help on this question, as we have not heard back from you. If the previous response did help, please mark his reply as solution. If we do not hear back in the next 7 days, we will archive the question.  
Many Thanks,  
Andrew

---

<div class="post-metadata">

**Author:** ![Brett](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/brett/32/36494_2.png) [@Brett](https://community.amazonquick.com/u/Brett)\
**Post date:** [July 30, 2024, 2:57pm UTC](https://community.amazonquick.com/t/postgres-connection-error/32445/4 "2024-07-30T14:57:48Z")

</div>

Hi @hojungkim,  
As we have not heard back from you, I’ll go ahead and close this topic. However, if you have any additional questions, feel free to create a new topic in the community and link this discussion for relevant information.

Thank you!
