Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to database inside Lambda function with VPC #108

Open
RicardoFCJ opened this issue Feb 18, 2022 · 1 comment
Open

Unable to connect to database inside Lambda function with VPC #108

RicardoFCJ opened this issue Feb 18, 2022 · 1 comment

Comments

@RicardoFCJ
Copy link

I'm really not sure if this is an issue related to developmentseed/geolambda or osgeo itself.

I'm using geolambda/python layers to access some files in s3 from inside a lambda function. My goal is to send data from s3 to a database. The database is a postgres+postgis in RDS on amazon AWS using VPC. The lambda is using x86_64 with Python 3.7 as it should. I've already configure lambda's VPC and permissions correctly, so I can connect to the database using psycopg2. However, when I try to create the connection with conn = osgeo.ogr.Open(connectionstring), the object conn is None.

I know that everything in connectionstring works, because I can connect to that same database from another computer in the exact same way.

@abrahammj
Copy link

Facing the same issue with MySQL. Were you able to find any work around @RicardoFCJ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants