Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Amazon Aurora Postgres support lambda invocations?

From what I could gather in AWS's documentation, Aurora MySQL supports invoking lambda functions as triggers: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AuroraMySQL.Integrating.Lambda.html

No such documentation for Postgres. Is there a way to call a lambda from a Postgres instance?

like image 700
falconizer Avatar asked Nov 01 '17 12:11

falconizer


2 Answers

PostgreSQL on RDS:

If you are using PostgreSQL on RDS, then as of now it doesn't support invoking lambda function as triggers.

Amazon Aurora(PostgreSQL Compatibility):

As of now this also doesn't support invoking lambda function as triggers.

PostgreSQL on EC2:

But if you have setup PostgreSQL on EC2, then you use leverage PL/Python language to create your User Defined Functions and AWS Python SDK to invoke Lambda functions.

In the below links, checkout the section titled PostgreSQL setup , in which they have provided detailed steps to achieve the same.

AWS Blog Link: Set up a SQL-to-Lambda interface

GitHub Link: aws-lambda-rdbms-integration

like image 88
Madhukar Mohanraju Avatar answered Nov 03 '22 02:11

Madhukar Mohanraju


Since December 2020 Aurora PostgreSQL supports Lambda invocations. Documentation can be found here.

like image 28
Infinity Avatar answered Nov 03 '22 00:11

Infinity