AWS Lambda functions have a bunch of event sources but SQS ain't one.
Why is that? I would have thought it was a good fit.
AWS Lambda functions have a bunch of event sources but SQS ain't one.
Why is that? I would have thought it was a good fit.
Here is a good blog post that shows you how to setup SQS as an event source for Lambda in code. Example in Terraform:
# Event source from SQS
resource "aws_lambda_event_source_mapping" "event_source_mapping" {
event_source_arn = "${var.terraform_queue_arn}"
enabled = true
function_name = "${aws_lambda_function.test_lambda.arn}"
batch_size = 1
}