-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
35 lines (31 loc) · 1.47 KB
/
serverless.yml
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
35
service: apm-processexport
provider:
name: aws
runtime: nodejs22.x
region: us-east-1
stage: dev #cli build params will override this!!
stackName: APMExportTrigger${self:custom.myStage}
custom:
myStage: ${opt:stage, self:provider.stage} #use the --stage CLI option if it exists, or use provider.stage
plugins:
-serverless-plugin-typescript
package:
patterns:
- 'node_modules/**/*'
functions:
apm-processexport:
handler: src/index.handler # required, handler set in AWS Lambda
name: apm-processexport-${self:custom.myStage} # optional, Deployed Lambda name
description: Process SQS export message to add media to audio or export file # optional, Description to publish to AWS
#events:
# - s3:
# bucket: ${file(./serverless.env.yml):${self:custom.myStage}.SIL_TR_USERFILES_BUCKET
# event: s3:ObjectCreated:*
# existing: true
runtime: nodejs22.x # optional overwrite, default is provider runtime
memorySize: ${file(./serverless.env.yml):${self:custom.myStage}.MEMORY} # optional, in MB, default is 1024
timeout: ${file(./serverless.env.yml):${self:custom.myStage}.TIMEOUT} # optional, in seconds, default is 6
role: ${file(./serverless.env.yml):${self:custom.myStage}.SIL_TR_LAMBDA_ROLE}
environment:
SIL_TR_USERFILES_BUCKET: ${file(./serverless.env.yml):${self:custom.myStage}.SIL_TR_USERFILES_BUCKET}
SIL_TR_EXPORT_QUEUE: ${file(./serverless.env.yml):${self:custom.myStage}.SIL_TR_EXPORT_QUEUE}