Giter VIP home page Giter VIP logo

Comments (3)

phouse512 avatar phouse512 commented on August 24, 2024

hey @crowdwave, I've been working with Lambda recently and used this package to help me get psycopg on my functions.

I took one of my zipped uploads and stripped out my handler code and re-zipped it up and put it on my google drive, you can find the file here: sample_lambda_zip

Hopefully you can modify that handler and see if you can get your code to work. The other thing that I would watch out for is making sure that your Lambda function has network access to your DB.

For example, I host my postgres database using RDS, and I had to add my Lambda function to the RDS vpc and make sure that the routing rules supported incoming requests to it. By default, lambda functions usually get placed in their own VPC, so definitely double check that. I had some troubles there as well when I initially was getting this up and running.

from awslambda-psycopg2.

crowdwave avatar crowdwave commented on August 24, 2024

@phouse you are a life saver than you so much - I spent a ridiculous amoutn of time trying to fix the wrong problem - it was the vpc configuration of the lambda function all along.

Thanks massively for your help - once I had known good code I was forced to think of what else it could be.

from awslambda-psycopg2.

phouse512 avatar phouse512 commented on August 24, 2024

@crowdwave glad it worked out 👍

from awslambda-psycopg2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.