Skip to content

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

Open

Description

@RicardoFCJ

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.

Activity

  1. abrahammj commented on Sep 1, 2022

    @abrahammj

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions