| name |
The name of the lambda |
string |
n/a |
yes |
| tags |
A mapping of tags to assign to the bucket |
map(string) |
n/a |
yes |
| architecture |
Instruction set architecture of the Lambda function |
string |
"x86_64" |
no |
| cloudwatch_logs |
Whether or not to configure a CloudWatch log group |
bool |
true |
no |
| create_allow_all_egress_rule |
Controls whether an egress rule to any ipv4 address will be created when the lambda is configured to run in a VPC |
bool |
false |
no |
| create_policy |
Overrule whether the Lambda role policy has to be created |
bool |
null |
no |
| create_s3_dummy_object |
Whether or not to create a S3 dummy object |
bool |
true |
no |
| dead_letter_target_arn |
The ARN of an SNS topic or SQS queue to notify when an invocation fails |
string |
null |
no |
| description |
A description of the lambda |
string |
"" |
no |
| destination_on_failure |
ARN of the destination resource for failed asynchronous invocations |
string |
null |
no |
| destination_on_success |
ARN of the destination resource for successful asynchronous invocations |
string |
null |
no |
| environment |
A map of environment variables to assign to the lambda |
map(string) |
null |
no |
| ephemeral_storage_size |
The size of the Lambda function Ephemeral storage |
number |
null |
no |
| filename |
The path to the function's deployment package within the local filesystem |
string |
null |
no |
| handler |
The function entrypoint in your code |
string |
"main.handler" |
no |
| kms_key_arn |
The ARN of the KMS key used to encrypt the cloudwatch log group and environment variables |
string |
null |
no |
| layers |
List of Lambda layer ARNs to be used by the Lambda function |
list(string) |
[] |
no |
| log_retention |
Number of days to retain log events in the specified log group |
number |
14 |
no |
| memory_size |
The memory size of the lambda |
number |
null |
no |
| permissions_boundary |
The permissions boundary to set on the role |
string |
null |
no |
| policy |
A valid lambda policy JSON document. Required if you don't specify a role_arn |
string |
null |
no |
| publish |
Whether to publish creation/change as new lambda function version |
bool |
false |
no |
| reserved_concurrency |
The amount of reserved concurrent executions for this lambda function |
number |
null |
no |
| retries |
Maximum number of retries for the Lambda invocation |
number |
null |
no |
| role_arn |
An optional lambda execution role |
string |
null |
no |
| role_prefix |
Default prefix for the role |
string |
null |
no |
| runtime |
The function runtime to use |
string |
"python3.9" |
no |
| s3_bucket |
The S3 bucket location containing the function's deployment package |
string |
null |
no |
| s3_key |
The S3 key of an object containing the function's deployment package |
string |
null |
no |
| s3_object_version |
The object version containing the function's deployment package |
string |
null |
no |
| source_code_hash |
Optional source code hash |
string |
null |
no |
| subnet_ids |
The subnet ids where this lambda needs to run |
list(string) |
null |
no |
| timeout |
The timeout of the lambda |
number |
5 |
no |
| tracing_config_mode |
The lambda's AWS X-Ray tracing configuration |
string |
null |
no |