library
turbot/aws
Get Involved
Version
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
Name | Type | Required | Description | Default |
---|---|---|---|---|
region | string | Yes | The name of the Region. | - |
conn | connection.aws | Yes | Name of AWS connection to use. If not provided, the default AWS connection will be used. | connection.aws.default |
function_name | string | Yes | The name of the Lambda function. | - |
role | string | Yes | The Amazon Resource Name (ARN) of the execution role that the function assumes. | - |
code | string | Yes | The code for the function in shorthand syntax: S3Bucket=string,S3Key=string,S3ObjectVersion=string,ImageUri=string | - |
publish | bool | No | Publishes the Lambda function as a new version if set to true. Otherwise, it doesn't publish the function. | - |
Outputs
Name | Description |
---|---|
function | The Lambda function. |