Skip to content

Instantly share code, notes, and snippets.

@rdsedmundo
Created December 2, 2018 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdsedmundo/556d8b6ed7fc119f13b8c54bf47595fa to your computer and use it in GitHub Desktop.
Save rdsedmundo/556d8b6ed7fc119f13b8c54bf47595fa to your computer and use it in GitHub Desktop.
serverless.yml with subscription filters
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