LambdaCreateFunctionOperator

Amazon

Creates an AWS Lambda function.

View on GitHub

Last Updated: Feb. 24, 2023

Access Instructions

Install the Amazon provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

function_nameRequiredThe name of the AWS Lambda function, version, or alias.
runtimeThe identifier of the function’s runtime. Runtime is required if the deployment package is a .zip file archive.
roleRequiredThe Amazon Resource Name (ARN) of the function’s execution role.
handlerThe name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive.
codeRequiredThe code for the function.
descriptionA description of the function.
timeoutThe amount of time (in seconds) that Lambda allows a function to run before stopping it.
configOptional dictionary for arbitrary parameters to the boto API create_lambda call.
wait_for_completionIf True, the operator will wait until the function is active.
aws_conn_idThe AWS connection ID to use

Documentation

Creates an AWS Lambda function.

More information regarding parameters of this operator can be found here https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda.html#Lambda.Client.create_function

See also

For more information on how to use this operator, take a look at the guide: Create an AWS Lambda function

Was this page helpful?