Skip to content

Instantly share code, notes, and snippets.

@theburningmonk
Created May 12, 2019 17:24
Show Gist options
  • Save theburningmonk/d51a53c25f7aefd503b35d79bd6508b1 to your computer and use it in GitHub Desktop.
Save theburningmonk/d51a53c25f7aefd503b35d79bd6508b1 to your computer and use it in GitHub Desktop.
How to include a SAR application in a Serverless.yml
service: sar-app-in-sls-demo
provider:
name: aws
runtime: nodejs8.10
functions:
hello:
handler: handler.hello
resources:
Transform: AWS::Serverless-2016-10-31
Resources:
SubscribeToApiGatewayLogs:
Type: AWS::Serverless::Application
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:374852340823:applications/auto-subscribe-log-group-to-arn
SemanticVersion: 1.1.0
Parameters:
DestinationArn: !GetAtt HelloLambdaFunction.Arn
Prefix: "API-Gateway-Execution-Logs"
FilterPattern: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment