-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
41 lines (35 loc) · 889 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
service: users-services
plugins:
- serverless-reqvalidator-plugin
- serverless-aws-documentation
package:
artifact: lambda/build/distributions/aws-serverless.zip
provider:
name: aws
runtime: java8
region: eu-central-1
stage: dev
tracing:
lambda: true
iamRoleStatements:
- Effect: Allow
Action:
- dynamodb:Query
- dynamodb:Scan
- dynamodb:GetItem
- dynamodb:PutItem
- dynamodb:UpdateItem
Resource:
- { "Fn::GetAtt": ["UsersDynamoDBTable", "Arn" ] }
environment:
JAVA_TOOL_OPTIONS: '-Dusers.table.name=${self:custom.usersTableName}'
custom:
usersTableName: 'users-${self:provider.stage}'
documentation:
${file(config/api-doc.yml)}
commonModelSchemaFragments:
${file(config/common-schema.yml)}
functions:
${file(config/functions.yml)}
resources:
${file(config/resources.yml)}