generated from Zira-integrations/deployment-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.json
executable file
·31 lines (31 loc) · 955 Bytes
/
serverless.json
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
{
"service": "sandbox",
"package": {
"individually": true
},
"provider": {
"name": "aws",
"runtime": "nodejs16.x",
"versionFunctions": false,
"stage": "${opt:stage, 'prod'}",
"region": "${file(serverless/region.json):${self:provider.stage}}",
"environment": "${file(serverless/loadEnvs.cjs)}",
"cfnRole": "arn:aws:iam::${self:custom.accountId}:role/DeploymentServiceRole",
"iamRoleStatements": "${file(serverless/iamRoleStatements.json)}",
"deploymentBucket": {
"name": "serverless-deploys-zira-${self:provider.stage}",
"blockPublicAccess": "true"
}
},
"plugins": ["serverless-esbuild", "serverless-plugin-aws-alerts"],
"functions": "${file(serverless/functions.cjs)}",
"custom": {
"esbuild": {
"config": "./esbuild.config.cjs"
},
"alerts": "${file(serverless/alerts.json)}",
"accountId": "419687873428",
"context": "${file(config/context.json)}"
},
"resources": "${file(serverless/resources.json)}"
}