-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
47 lines (42 loc) · 966 Bytes
/
Copy pathserverless.yml
File metadata and controls
47 lines (42 loc) · 966 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
service: interactive-voice-api
provider:
name: aws
runtime: nodejs14.x
stage: dev
region: eu-central-1
memorySize: 128
environment:
DYNAMODB_TABLE: SubCustomers
custom:
dynamodb:
start:
migrate: true
serverless-offline:
httpPort: 3000
functions:
app:
handler: src/handler.handler
events:
- http:
path: /{proxy+}
method: ANY
cors: true
resources:
Resources:
SubCustomersTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: ${self:provider.environment.DYNAMODB_TABLE}
AttributeDefinitions:
- AttributeName: customerId
AttributeType: S
- AttributeName: subCustomerId
AttributeType: S
KeySchema:
- AttributeName: customerId
KeyType: HASH
- AttributeName: subCustomerId
KeyType: RANGE
BillingMode: PAY_PER_REQUEST
plugins:
- serverless-offline