Comments (3)
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.
@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.
@crowdwave glad it worked out 👍
from awslambda-psycopg2.
Related Issues (20)
- Understanding the contents of the .so file HOT 1
- About the license
- libssl.so.1.1 : cannot open shared object file: No such file or director HOT 2
- Are they plans to support Python 3.9? HOT 7
- Lambda layer : No module named 'psycopg2' HOT 2
- AWS Lambda with psycopg2 (compiled with PostgreSQL 13.4) HOT 4
- PSYCOPG2 FOR 3.9 HOT 5
- SSL support for PSYCOPG2 3.9 HOT 3
- get_cluster_credentials not working for 3.8 version HOT 1
- Python 3.9 psycopg2 with SSL HOT 1
- Error with timescaledb, function not found when deployed to AWS lambda HOT 1
- Python 3.10 support missing HOT 3
- Graviton arm64
- How to fix the following error. No module named 'psycopg2._psycopg' HOT 2
- Code for python3.9 with ssl support here HOT 2
- awslambda asyncpg
- I am getting Unzipped size must be smaller than 262144000 bytes (Service: Lambda, Status Code: 400)
- Python 3.11 support HOT 14
- Python 3.12 support HOT 1
- using either 3.9 or 3.11 boundles, still hang in connection time and timeout
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awslambda-psycopg2.