-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
45 lines (37 loc) · 968 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
service: serverless-telegram
package:
individually: true
plugins:
- serverless-bundle
- serverless-offline
- serverless-dotenv-plugin
# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
# frameworkVersion: "=X.X.X"
provider:
name: aws
runtime: nodejs12.x
stage: dev
region: us-east-2
# you can add statements to the Lambda function's IAM Role here
iamRoleStatements:
- Effect: Allow
Action:
- dynamodb:DescribeTable
- dynamodb:Query
- dynamodb:Scan
- dynamodb:GetItem
- dynamodb:PutItem
- dynamodb:UpdateItem
- dynamodb:DeleteItem
Resource: "arn:aws:dynamodb:us-east-2:*:*"
# you can define service wide environment variables here
environment:
tablename: spotify_invoice_users
functions:
hello:
handler: handler.commands
events:
- http:
path: commands
method: post