No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github add PR template Jul 9, 2018
test update test dependencies Oct 4, 2018
.gitignore added defaults test (#1) Jul 30, 2018
.travis.yml update Dec 6, 2018
.yamllint add Travis config Jul 2, 2018
LICENSE add Travis config Jul 2, 2018 added defaults test (#1) Jul 30, 2018
module.yml release 1.0 Sep 20, 2018
package.json release 1.0 Sep 20, 2018

Build Status NPM version

cfn-modules: AWS Lambda event source: SQS queue

SQS queue event source for AWS Lambda function.


Install Node.js and npm first!

npm i @cfn-modules/lambda-event-source-sqs-queue


WARNING: We recommend to set the ReservedConcurrentExecutions parameter in the lambda-function module when using this module. If you do not set the parameter and many messages arrive, the Lambda function scales up to the regional limit which impacts other Lambda functions in the same region in your AWS account. For most use cases a value of 10 should be fine. If the SQS queue length grows you might want to increase the number.

AWSTemplateFormatVersion: '2010-09-09'
Description: 'cfn-modules example'
    Type: 'AWS::CloudFormation::Stack'
        LambdaModule: !GetAtt 'Function.Outputs.StackName' # required
        QueueModule: !GetAtt 'Queue.Outputs.StackName' # required
        BatchSize: 10 # optional
      TemplateURL: './node_modules/@cfn-modules/lambda-event-source-sqs-queue/module.yml'


Name Description Default Required? Allowed values
LambdaModule Stack name of lambda-function module yes
QueueModule Stack name of sqs-queue module no
BatchSize The largest number of messages that Lambda retrieves from your queue at once. 10 no [1-10000]