library
turbot/aws
OverviewPipelines
0
Triggers
0
Variables
GitHub

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
regionstringYesThe name of the Region.-
credstringYesName for credentials to use. If not provided, the default credentials will be used.default
function_namestringYesThe name of the Lambda function.-
rolestringYesThe Amazon Resource Name (ARN) of the execution role that the function assumes.-
codestringYesThe code for the function in shorthand syntax: S3Bucket=string,S3Key=string,S3ObjectVersion=string,ImageUri=string-
publishboolNoPublishes the Lambda function as a new version if set to true. Otherwise, it doesn't publish the function.-

Outputs

NameDescription
functionThe Lambda function.