Skip to content

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.

Notifications You must be signed in to change notification settings

Xerris-Terraform-Modules/terraform-aws-event-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

AWS Lambda Triggered by Events and Run in Containers

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.

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No Modules.

Resources

Name
aws_caller_identity
aws_cloudwatch_event_rule
aws_cloudwatch_event_target
aws_iam_policy
aws_iam_policy_attachment
aws_iam_policy_document
aws_iam_role
aws_lambda_event_source_mapping
aws_lambda_function
aws_lambda_permission
aws_region
aws_s3_bucket_notification

Inputs

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

Outputs

No output.

About

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.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages