-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
61 lines (58 loc) · 1.24 KB
/
serverless.yml
File metadata and controls
61 lines (58 loc) · 1.24 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
org: arjunmnn7
app: aws-node-http-api-project
service: aws-node-http-api-project
frameworkVersion: '3'
provider:
name: aws
runtime: nodejs14.x
region: us-east-1
iamRoleStatements:
- Effect: Allow
Action:
- dynamodb:*
Resource:
- arn:aws:dynamodb:us-east-1:290639524860:table/KaamKaro
functions:
hello:
handler: src/hello.handler
events:
- httpApi:
path: /
method: get
kaamBharo:
handler: src/kaamBharo.handler
events:
- httpApi:
path: /kaam
method: post
kaamDikhao:
handler: src/kaamDikhao.handler
events:
- httpApi:
path: /kaam
method: get
kaamKhatamKaro:
handler: src/kaamKhatamKaro.handler
events:
- httpApi:
path: /kaam/{id}
method: put
kaamHatao:
handler: src/kaamHatao.handler
events:
- httpApi:
path: /kaam/{id}
method: post
resources:
Resources:
KaamKaro:
Type: AWS::DynamoDB::Table
Properties:
TableName: KaamKaro
BillingMode: PAY_PER_REQUEST
AttributeDefinitions:
- AttributeName: id
AttributeType: S
KeySchema:
- AttributeName: id
KeyType: HASH