AWS Messaging 0.9.1
Simple Queuing Service (SQS) To Lambda Connection Module
View SourceRelease NotesThis module wraps the basics for using SQS to trigger a Lambda for processing
Sample Usage
- Terraform
- Terragrunt
main.tf
# ------------------------------------------------------------------------------------------------------
# DEPLOY GRUNTWORK'S SQS-LAMBDA-CONNECTION MODULE
# ------------------------------------------------------------------------------------------------------
module "sqs_lambda_connection" {
source = "git::git@github.com:gruntwork-io/terraform-aws-messaging.git//modules/sqs-lambda-connection?ref=v0.9.1"
# ----------------------------------------------------------------------------------------------------
# REQUIRED VARIABLES
# ----------------------------------------------------------------------------------------------------
# The arn of the lambda.
lambda_arn = <INPUT REQUIRED>
# The arn of the queue.
sqs_arn = <INPUT REQUIRED>
# ----------------------------------------------------------------------------------------------------
# OPTIONAL VARIABLES
# ----------------------------------------------------------------------------------------------------
# The largest number of records that Lambda will retrieve from your event source
# at the time of invocation. Defaults to 10 for SQS
batch_size = 10
}
terraform.tfvars
# Coming soon!
Reference
- Inputs
- Outputs
Required
lambda_arnstringThe arn of the lambda.
sqs_arnstringThe arn of the queue.
Optional
batch_sizenumberThe largest number of records that Lambda will retrieve from your event source at the time of invocation. Defaults to 10 for SQS
10