Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

serverless plugin to make serverless-cwe-sns-sqs-lambda events

NotificationsYou must be signed in to change notification settings

lytesoft/serverless-cwe-sns-lambda

 
 

Repository files navigation

serverlessMIT License

This plugin allows to define a cloudwatch event rule as the trigger for a lambda. To handle errors and retries, this event will go through SNS (connected to a DLQ to avoid delivery problems) and call a lambda which should have the onError param with another DLQ defined (outside the scope of this plugin)

Install

Runnpm install in your Serverless project.

$ npm install --save-dev https://github.com/tcastelli/serverless-cwe-sns-lambda/master/tarball

Add the plugin to your serverless.yml file

plugins:  -"serverless-cwe-sns-lambda"

Setup

functions:processEvent:handler:handler.handlerevents:      -cweSns:ruleResourceName:XXXXEvent#requiredtopicResourceName:XXXXTopic#optionaldlqResourceName:string#optionaldlqPolicyResourceName:string#optionalruleMessage:Input || InputPath || InputTransformer#optionalfilterPolicy:Object#optionalprefix:string#optionalresources:Resources:XXXXEvent:Type:AWS::Events::RuleProperties:ScheduleExpression:cron(0/3 * * * ? *)State:ENABLEDTargets:[]plugins:  -serverless-cwe-sns-lambda

About

serverless plugin to make serverless-cwe-sns-sqs-lambda events

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp