-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathserverless.yml
More file actions
34 lines (30 loc) · 817 Bytes
/
serverless.yml
File metadata and controls
34 lines (30 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
service: cloudwatch-logs
plugins:
- serverless-pseudo-parameters
- serverless-iam-roles-per-function
provider:
name: aws
runtime: nodejs8.10
stage: dev
region: us-east-1
versionFunctions: false
functions:
ship-logs-to-logzio:
handler: functions/ship-logs/handler.handler
description: Sends CloudWatch logs to Logz.io
memorySize: 128
environment:
logstash_host: listener.logz.io
logstash_port: 5015
token: rBrdvFgguTSCLHhFfLDmyuGTQZhDYyZt
resources:
Resources:
LambdaInvokePermission:
Type: AWS::Lambda::Permission
Properties:
Action: lambda:InvokeFunction
FunctionName:
Fn::Join:
- ""
- - "Ref" : "ShipDashlogsDashtoDashlogzioLambdaFunction"
Principal: logs.#{AWS::Region}.amazonaws.com