# Connect AWS hosted Grafana Instance to AWS Relational Database Service (SQL) As a Datasource

**URL:** <https://community.grafana.com/t/connect-aws-hosted-grafana-instance-to-aws-relational-database-service-sql-as-a-datasource/19839>\
**Category:** Grafana\
**Created:** [August 1, 2019, 6:01pm UTC](https://community.grafana.com/t/connect-aws-hosted-grafana-instance-to-aws-relational-database-service-sql-as-a-datasource/19839 "2019-08-01T18:01:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arianofaoms](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@arianofaoms](https://community.grafana.com/u/arianofaoms)\
**Post date:** [August 1, 2019, 6:01pm UTC](https://community.grafana.com/t/connect-aws-hosted-grafana-instance-to-aws-relational-database-service-sql-as-a-datasource/19839/1 "2019-08-01T18:01:09Z")

</div>

Hi,

I’m new to Grafana, and we are trying to connect [Grafana Bitnami](https://bitnami.com/stack/grafana) instance (hosted on AWS) from within our VPC to our private Relational Database (RDS) also residing in the same VPC.

So, what I do is simply put the RDS url in the hostname, and input the correct username and password and database name. When I want to connect, I get the following **error** :

> dial tcp 172.XX.XX.XXX:3306: connect: connection timed out

But then, I can successfully telnet to the same RDS through the SSH of my grafana bitnami instance. I’m not sure what the problem is 😕

Any help will be greatly appreciated!
