Forum Discussion

edwardrmiles's avatar
edwardrmiles
Helper III
9 years ago
Solved

Connecting to PostgresSQL hosted on AWS RDS?

Has anyone managed to do connect to PostgresSQL hosted on AWS RDS? if so how did you do it?

 

It appears from a few forum and ideas posts that it wasn't possible when PBI was released but I was wondering if the situation had changed or perhpas someone had come up with a work around?

 

(ps I know there is a PostgresSQL on-prem connector and AWS Redshift connector)

39 Replies

  • I ran into the same error, and disabling encryption will also make that error go away. 

     

    To disable encryption

    1. File --> Options and settings --> Data source settings
    2. Click Edit Permissions on your connection
    3. Uncheck Encrypt Connections
    • Chollo's avatar
      Chollo
      New Member

      This totally worked for me.
      Thank you!

  • I am struggling with the same issue connecting power bi to couldSql database on GCP.

    It doesn't work if i select a direct PostgreSQL connection. Error is 'The remote certificate is invalid according to the validation procedure'.

    But if I use ODBC and set 'sslMode=required' then the connection works. (I must to use direct PostgreSQL connection for my solution).

    Anyone faced similar issue? it's very urgent for me unfortunately, thanks in advance!

    • Anonymous's avatar
      Anonymous
      Not applicable

      I've added the global bundle cert from the AWS to Trusted Root Certificate, but I still get the error on Power BI - "The remote certificate is invalid according to the validation procedure". Have you managed to connect to Postgresql database with encryption?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi edwardrmiles

    Have you tried to use the on-pre PostgreSQL connector in Power BI Desktop to connect to PostgreSQL hosted on AWS RDS? What problem do you get?


    Thanks,
    Lydia Zhang

  • I tried these instructions above, but i need to figure out another detail: you need to specify the host full name (e.g: mydb-production-read.sdjalsajdlskja3j.sa-east.rds.amazon.com) not the friendly name behind your dns.
    I tried connect with the internal name of our vpc, like mydatabase.prod.mycompany.com and fail because this host isn't especified on amazon certificate.

    ""Npgsql.Tls.ClientAbortException: Certificate Unknown: Server certificate was not accepted. The specified hostname was not present in the certificate."

    • PowerBILover92's avatar
      PowerBILover92
      New Member

      Hello,

       

      Have you figured this out? I am facing the same problem and done the above instructions, given that I am giving a IP address for the server name.

       

       

    • PowerBILover92's avatar
      PowerBILover92
      New Member

      Hello,

       

      Have you figured out this? I am facing the same issue after doing the exact instructions above.

       

      Given that I am providing the IP Address not the full Host name.

       

  • Hello aqavi10 , edwardrmiles , Anonymous ,

     

    I have successfully followed all the instructions but still getting the "The remote certificate is invalid according to the validation procedure" error.

     

    However, I'm missing the last step when moving certificates to "Local Computer". Indeed, I've no such folder on my machine :

     

    Could it be the reason why I still get the error? What should I do to make it work?

    Thanks a lot !

    Loïc