My lambda function uses this library to access data stored in an postgresql rds instance.
Aws lambda ruby postgres.
On windows 10 you can install the windows subsystem for linux to get a windows integrated version of ubuntu and bash.
Postgresql on aws lambda ruby.
It s been long time since i wrote a blog post.
It is understandable that ami image does not include libraries such as psycopg2 it is the lambda function developer s job to include any.
In particular you can access aurora easily from aws lambda aws appsync and aws cloud9.
Lambda project this is a command this is output for long commands an escape character is used to split a command over multiple lines on linux and macos use your preferred shell and package manager.
Amazon aurora serverless postgresql can now be accessed using the built in data api enabling you to access aurora serverless with web services based applications.
While working on a personal project for setting up a basic data pipeline described here i ran into an issue where psycopg2 library was not available on aws lambda.
Ever since aws announced that ruby was now available on lambdas i have been looking at porting over my ror code to lambdas to see if i can save money instead of running ec2 instances.
Posted by ramasankar august 15 2018 april 4 2020 posted in aws aws lambda postgresql python.
Aws lambda to connect to postgresql and execute a function query using python.