Terraform module for lambda-function on aws
module "lambda-function" {
source = "registry.patterneddesigns.ca/patterneddesigns/lambda-function/aws"
version = "0.1.0"
}function_name
requiredThe name of the Lambda function
my-resourceruntime
requiredLambda runtime identifier
python3.9handler
requiredFunction entrypoint in your code
example-valuesource_path
requiredPath to the function source code
/path/to/resourcememory_sizeAmount of memory in MB allocated to the function
timeoutMaximum execution time in seconds
reserved_concurrent_executionsReserved concurrency limit for the function. Use -1 for no limit, 0 to disable.
environment_variablesEnvironment variables passed to the function
{}vpc_configVPC configuration for private network access
function_arnARN of the Lambda function
arn:aws:lambda:us-east-1:123456789012:function:examplefunction_nameName of the Lambda function
my-lambda-functionqualified_arnARN with version qualifier
arn:aws:service:us-east-1:123456789012:resourcerole_arnARN of the function's execution role
arn:aws:iam::123456789012:role/example-roleinvoke_arnARN for invoking the function via API Gateway
arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:123456789012:function:example/invocations