-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathserverless.yml
More file actions
44 lines (39 loc) · 754 Bytes
/
Copy pathserverless.yml
File metadata and controls
44 lines (39 loc) · 754 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
service: expressjs-codespace
frameworkVersion: '3'
plugins:
- serverless-bundle
- serverless-localstack
- serverless-resources
- serverless-offline
provider:
name: aws
runtime: nodejs14.x
functions:
api:
handler: index.handler
timeout: 30
events:
- http:
path: /
method: any
- http:
path: /
method: options
- http:
path: /{proxy+}
method: any
- http:
path: /{proxy+}
method: options
resources:
Resources:
Queue:
Type: AWS::SQS::Queue
Properties:
QueueName: my-queue-${opt:stage, 'dev'}
custom:
serverless-offline:
host: 0.0.0.0
noPrependStageInUrl: true
bundle:
packager: yarn