AWS Lambda

With AWS Lambda, you can run code without provisioning or managing servers. You pay only for the compute time that you consume—there’s no charge when your code isn’t running. You can run code for virtually any type of application or backend service—all with zero administration. Just upload your code and Lambda takes care of everything required to run and scale your code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.

Prerequisite Tasks

To use these operators, you must do a few things:


Invoke an AWS Lambda function

To invoke an AWS lambda function you can use AwsLambdaInvokeFunctionOperator.


invoke_lambda_function = AwsLambdaInvokeFunctionOperator(
    payload=json.dumps({"SampleEvent": {"SampleData": {"Name": "XYZ", "DoB": "1993-01-01"}}}),

Was this entry helpful?