forked from DoSomethingArchive/lambda-papertrail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
31 lines (27 loc) · 789 Bytes
/
serverless.yml
File metadata and controls
31 lines (27 loc) · 789 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
# For full config options, check the docs:
# docs.serverless.com
service: lambda-google-cloud-logging
provider:
name: aws
runtime: nodejs20.x
region: us-west-2
environment:
GOOGLE_CLOUD_PROJECT_ID: scribeware5
GOOGLE_CLOUD_LOG_NAME: lambda
GOOGLE_APPLICATION_CREDENTIALS_JSON: ${ssm(raw):/prod/google-application-credentials}
functions:
forwarder:
handler: handler.log
resources:
Resources:
ForwarderLambdaPermission:
Type: 'AWS::Lambda::Permission'
Properties:
Action: 'lambda:InvokeFunction'
FunctionName:
Fn::GetAtt: [ForwarderLambdaFunction, Arn]
Principal: logs.${self:provider.region}.amazonaws.com
Outputs:
ForwarderLambdaArn:
Value:
Fn::GetAtt: [ForwarderLambdaFunction, Arn]