Skip to main content

AwsLambdaExecutionModuleSchema

AwsLambdaExecutionModuleSchema is the input schema for the AwsLambdaExecutionModule module: which deployment runs on Lambda, where, and how many instances of it may run at once.

@group

Modules/Execution/AwsLambdaExecution

@see

AwsLambdaExecutionModule to learn more about the AwsLambdaExecutionModule module.

Index

Properties

deployment

deployment: Deployment

The deployment to run. Its image must be one octo publishes into ECR, and it must set a memory and a timeout, and listen on at most one tcp port. The function runs on the processor the image was built for, and the Lambda Web Adapter forwards each request to that port.

environment

environment: Environment

The serverless environment to run in.

optionalenvironmentVariables

environmentVariables?: Record<string, string> = {}

Environment variables for this execution, on top of the environment's own. A key is two or more letters, digits or underscores; a value is not empty.

executionId

executionId: string

A unique identifier for this execution. It is also the name of the Lambda function, and part of the name of its IAM role, so it is at most 50 characters. IAM role names are shared by every region of an account, so it must be unique within the account.

optionalinvokeMode

invokeMode?: BUFFERED | RESPONSE_STREAM = 'BUFFERED'

How the function's URL returns a response. BUFFERED, the default, returns it whole, up to 6 MB. RESPONSE_STREAM streams it as the server writes it, up to 200 MB, and tells the Lambda Web Adapter to stream as well.

optionallogRetentionInDays

logRetentionInDays?: 1 | 3 | 5 | 7 | 14 | 30 | 60 | 90 | 120 | 150 | 180 | 365 | 400 | 545 | 731 | 1096 | 1827 | 2192 | 2557 | 2922 | 3288 | 3653 = 30

How many days the function's logs are kept before CloudWatch deletes them: one of 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288 or 3653.

optionalreservedConcurrency

reservedConcurrency?: number | null = null

How many instances of the function may run at once. They are reserved out of the account's concurrency, so other functions cannot take them, and 0 stops the function from running. Left out, nothing is reserved and nothing is capped. AWS keeps 10 of an account's concurrency unreserved, so an account whose limit is 10 can reserve none.

subnet

subnet: Subnet

The subnet of the serverless region to run in.