The contents of the IAM policy attached to the IAM Execution role used by the Lambda. If not defined, then creates the policy with permissions to log to CloudWatch Logs.
string
""
no
execution_role_policy_name
The name of the IAM policy attached to the IAM Execution role used by the Lambda. If not defined, then uses the value of "execution_role_name".
string
""
no
filename
The path to the function's deployment package within the local filesystem. If defined, the s3_-prefixed options cannot be used.
string
n/a
yes
function_description
Description of what your Lambda Function does.
string
""
no
function_name
A unique name for your Lambda Function.
string
n/a
yes
handler
The function entrypoint in your code.
string
n/a
yes
memory_size
Amount of memory in MB your Lambda Function can use at runtime. Maximum value for Viewer Request or Response events is 128.
number
128
no
runtime
The identifier of the function's runtime.
string
n/a
yes
tags
A mapping of tags to assign to the Lambda Function.
map(string)
{ "Automation": "Terraform" }
no
timeout
The amount of time your Lambda Function has to run in seconds. Maximum value is 5 seconds.
number
3
no
Outputs
Name
Description
lambda_execution_role_arn
The Amazon Resource Name (ARN) identifying the IAM Role used to execute this Lambda.
lambda_function_arn
The Amazon Resource Name (ARN) identifying your Lambda Function.
lambda_function_name
A unique name for your Lambda Function.
lambda_function_qualified_arn
The Amazon Resource Name (ARN) identifying your Lambda Function Version.
lambda_invoke_arn
The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_integration's uri.