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.
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:
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.