-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
47 lines (36 loc) · 877 Bytes
/
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
36
37
38
39
40
41
42
43
44
45
46
47
service: centro-tech-api
frameworkVersion: '3'
configValidationMode: error
provider:
name: aws
stage: ${opt:stage, 'homolog'}
region: 'us-east-1'
runtime: nodejs20.x
stackTags:
Name: ${self:service}
Product: "centro-tech-api"
environment:
NODE_OPTIONS: --enable-source-maps
AWS_SERVICE_NAME: ${self:service}
AWS_D_REGION: ${aws:region}
AWS_STAGE_NAME: ${sls:stage}
AWS_CUSTOMER_TABLE_NAME:
Ref: CetroTechDynamoDBTable
iamRoleStatements: ${file(./aws/iamroles.yml)}
package:
individually: true
custom:
webpack:
webpackConfig: ./webpack.config.js
prune:
automatic: true
number: 1
functions:
- ${file(./aws/functions.yml)}
resources:
- ${file(./aws/resources.yml)}
plugins:
- serverless-webpack
- serverless-plugin-resource-tagging
- serverless-prune-plugin
- serverless-offline