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:

Operators

Invoke an AWS Lambda function

To invoke an AWS lambda function you can use AwsLambdaInvokeFunctionOperator.

tests/system/providers/amazon/aws/example_lambda.py[source]

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

Was this entry helpful?