An open API service indexing awesome lists of open source software.

https://github.com/epomatti/aws-rds-athena

Querying RDS in a private VPC from Athena
https://github.com/epomatti/aws-rds-athena

athena aws lambda postgresql rds terraform

Last synced: 7 months ago
JSON representation

Querying RDS in a private VPC from Athena

Awesome Lists containing this project

README

          

# AWS RDS Athena

Querying RDS in a private VPC from Athena.

Create the variables file set the values:

```sh
cp config/template.tfvars .auto.tfvars
```

Create the resources:

```sh
terraform init
terraform apply -auto-approve
```

In Athena, create a [PostgreSQL Lambda connector][1].

The connection string will look something like this:

```
postgres://jdbc:postgresql://:5432/athenadb?user=athena&password=p4ssw0rd
```

[1]: https://docs.aws.amazon.com/athena/latest/ug/connectors-postgresql.html