-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_serverless.yml
More file actions
56 lines (48 loc) · 1.2 KB
/
_serverless.yml
File metadata and controls
56 lines (48 loc) · 1.2 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
service: sls-api-ts
frameworkVersion: "2"
provider:
name: aws
runtime: nodejs14.x
memorySize: 512
timeout: 10
profile: default
# you can overwrite defaults here
# stage: dev
# region: us-east-1
# you can add statements to the Lambda function's IAM Role here
# iamRoleStatements:
# - Effect: "Allow"
# Action:
# - "s3:ListBucket"
# Resource: { "Fn::Join" : ["", ["arn:aws:s3:::", { "Ref" : "ServerlessDeploymentBucket" } ] ] }
# - Effect: "Allow"
# Action:
# - "s3:PutObject"
# Resource:
# Fn::Join:
# - ""
# - - "arn:aws:s3:::"
# - "Ref" : "ServerlessDeploymentBucket"
# - "/*"
# you can define service wide environment variables here
# environment:
# variable1: value1
# you can add packaging information here
#package:
# include:
# - include-me.js
# - include-me-dir/**
# exclude:
# - exclude-me.js
# - exclude-me-dir/**
functions:
api_home:
handler: handler.api_home
events:
- http: get api_home
resources:
Resources:
SlSApiTsBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: SlSApiTsBucket-10091986