Created
December 2, 2018 16:22
-
-
Save rdsedmundo/556d8b6ed7fc119f13b8c54bf47595fa to your computer and use it in GitHub Desktop.
serverless.yml with subscription filters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: subscription-filter-service | |
provider: | |
name: aws | |
runtime: nodejs8.10 | |
stage: dev | |
region: us-east-1 | |
functions: | |
hello2: | |
handler: handler2.hello | |
events: | |
- cloudwatchLog: '/aws/lambda/subscription-test-2' | |
hello3: | |
handler: handler3.hello | |
events: | |
- cloudwatchLog: '/aws/lambda/subscription-test-1' | |
hello: | |
handler: handler.hello | |
events: | |
- cloudwatchLog: '/aws/lambda/subscription-test-3' | |
package: | |
exclude: | |
- node_modules/** | |
resources: | |
Resources: | |
testLogGroup1: | |
Type: AWS::Logs::LogGroup | |
Properties: | |
LogGroupName: '/aws/lambda/subscription-test-1' | |
RetentionInDays: 1 | |
testLogGroup2: | |
Type: AWS::Logs::LogGroup | |
Properties: | |
LogGroupName: '/aws/lambda/subscription-test-2' | |
RetentionInDays: 1 | |
testLogGroup3: | |
Type: AWS::Logs::LogGroup | |
Properties: | |
LogGroupName: '/aws/lambda/subscription-test-3' | |
RetentionInDays: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment