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
- Host: GitHub
- URL: https://github.com/epomatti/aws-rds-athena
- Owner: epomatti
- License: mit
- Created: 2024-01-28T01:52:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-28T18:20:43.000Z (over 1 year ago)
- Last Synced: 2025-01-17T18:34:48.977Z (9 months ago)
- Topics: athena, aws, lambda, postgresql, rds, terraform
- Language: HCL
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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