-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
35 lines (31 loc) · 752 Bytes
/
Copy pathserverless.yml
File metadata and controls
35 lines (31 loc) · 752 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
# "org" ensures this Service is used with the correct Serverless Framework Access Key.
org: johanpham2711
# "service" is the name of this project. This will also be added to your AWS resource names.
service: serverless-demo
provider:
name: aws
runtime: nodejs20.x
plugins:
- serverless-s3-sync
custom:
s3Sync:
- bucketName: my-serverless-demo-bucket-12334
localDir: public
functions:
app-api:
handler: handler.handler
events:
- http:
path: /
method: GET
cors: true
- http:
path: /{proxy+}
method: ANY
cors: true
resources:
Resources:
MyBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: my-serverless-demo-bucket-12334