Skip to content

Support the RDS PostgreSQL aws_lambda extension #800

@juman-y

Description

@juman-y

I would like to use this extension in fakecloud-managed PostgreSQL/RDS instances so that SQL running in the database can invoke Lambda functions directly, for example with aws_lambda.invoke(...).

LocalStack documents this feature here, and I would like fakecloud to provide compatible behavior as well:
https://docs.localstack.cloud/aws/services/rds/#aws_lambda-extension

Expected SQL:

CREATE EXTENSION IF NOT EXISTS aws_lambda CASCADE;

SELECT aws_commons.create_lambda_function_arn('my_function');

SELECT aws_lambda.invoke('my_function', '{"body": "Hello!"}'::json);

The invocation should call the corresponding fakecloud Lambda function and return a response compatible with AWS RDS PostgreSQL behavior.

This would help me run local integration tests for applications that rely on RDS PostgreSQL invoking Lambda functions from SQL.

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