library
turbot/aws
OverviewPipelines
0
Triggers
0
Variables
GitHub

Pipeline: Create Lambda Function

Creates an AWS Lambda function.

Run the pipeline

To run this pipeline from your terminal:

flowpipe pipeline run aws.pipeline.create_lambda_function \
--arg 'region=<string>' \
--arg 'function_name=<string>' \
--arg 'role=<string>' \
--arg 'code=<string>'

Use this pipeline

To call this pipeline from your pipeline, use a step:

step "pipeline" "step_name" {
pipeline = aws.pipeline.create_lambda_function
args = {
region = <string>
function_name = <string>
role = <string>
code = <string>
}
}

Params

NameTypeRequiredDescriptionDefault
region
string
YesThe name of the Region.-
conn
connection.aws
YesName of AWS connection to use. If not provided, the default AWS connection will be used.connection.aws.default
function_name
string
YesThe name of the Lambda function.-
role
string
YesThe Amazon Resource Name (ARN) of the execution role that the function assumes.-
code
string
YesThe code for the function in shorthand syntax: S3Bucket=string,S3Key=string,S3ObjectVersion=string,ImageUri=string-
publish
bool
NoPublishes the Lambda function as a new version if set to true. Otherwise, it doesn't publish the function.-

Outputs

NameDescription
functionThe Lambda function.