https://registry.terraform.io/modules/Xerris-Terraform-Modules/event-lambda/aws/latest
This is a Lambda designed to run container based lambda handlers and be triggered by either S3 Events, SQS Queues, and Cloudwatch Chron Events. It includes the basic IAM permissions needed to run as well as the option to specify S3 bucket, SQS queue, DynamoDB as well as Secrets Manager ARN's to give access to.
No requirements.
| Name | Version |
|---|---|
| aws | n/a |
No Modules.
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| bucket_event_arn | Arn of the bucket you want to trigger on. | string |
null |
no |
| bucket_event_id | Id of the bucket you want to trigger on. | string |
null |
no |
| command | The container commands for the lambda. Probably will depricate so don't use this | list(string) |
[] |
no |
| cron_expression | Chron expression you want the lambda to be triggered on | string |
null |
no |
| description | The description for this lambda. | string |
n/a | yes |
| dynamodb_read_arn_iam_list | List of the dynamodb arns you want the lambda to have read iam access to. | list(string) |
[] |
no |
| dynamodb_readwrite_arn_iam_list | List of the dynamodb arns you want the lambda to have read/write iam access to. | list(string) |
[] |
no |
| enable_chron | If you want to enable the lambda to be triggered on a regular(chron) scheduale | bool |
false |
no |
| enable_s3_event | If you want this lambda to be triggered by an S3 upload event. | bool |
false |
no |
| enable_sqs_event | If you want to trigger the lambda on an item in an SQS Queue event. | bool |
false |
no |
| entrypoint | The entrypoint of the lambda. | string |
n/a | yes |
| env | The environment of the lambda. (dev, stage, prod) | string |
n/a | yes |
| function_name | The name for this lambda. | string |
n/a | yes |
| image | The id of the image for the lambda. | string |
n/a | yes |
| lambda_arn_iam_list | List of the lambda arns you want the lambda to have iam access to. Probably will depricate, use with caution | list(string) |
[] |
no |
| memory_size | Memory size of the lambda. | number |
128 |
no |
| s3_read_arn_iam_list | List of the s3 arns you want the lambda to have read iam access to. | list(string) |
[] |
no |
| s3_readwrite_arn_iam_list | List of the s3 arns you want the lambda to have read/write iam access to. | list(string) |
[] |
no |
| secretsmanager_arn_iam_list | List of the secretsmanager arns you want the lambda to have iam access to. | list(string) |
[] |
no |
| sqs_arn_iam_list | List of the sqs arns you want the lambda to have iam access to. | list(string) |
[] |
no |
| sqs_event_arn | Arn of the SQS Queue you want to trigger on. | string |
null |
no |
| subnet_ids | List of the subnet ids you want the lambda to reside in. | list(string) |
null |
no |
| timeout | Timeout of the lambda. | number |
30 |
no |
| vpc_security_group_ids | List of the security group ids you want the lambda to reside in. | list(string) |
null |
no |
No output.