-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathserverless.component.yml
138 lines (122 loc) · 3.26 KB
/
serverless.component.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: express
version: 3.0.1
author: eahefnawy
org: serverlessinc
description: Deploys a serverless Express.js application onto AWS Lambda and AWS HTTP API.
keywords: aws, serverless, express
repo: https://github.com/serverless-components/express
license: MIT
main: ./src
types:
providers:
- aws
actions:
# deploy
deploy:
description: Deploy your Express.js application to AWS Lambda, AWS HTTP API and more.
inputs:
src:
type: src
description: The folder containing the source code of your Express.js application.
memory:
type: number
description: The memory size of your AWS Lambda function.
default: 1024
allow:
- 128
- 192
- 256
- 320
- 384
- 448
- 512
- 576
- 704
- 768
- 832
- 1024
- 1280
- 1536
- 1792
- 2048
- 2240
- 2688
- 2944
- 3008
timeout:
type: number
description: The number of seconds until your AWS Lambda function times out.
default: 5
min: 1
max: 900
description:
type: string
description: A description of your application.
region:
type: string
description: The AWS region you wish to deploy your application to.
default: us-east-1
allow:
- us-east-1
- us-east-2
- us-west-1
- us-west-2
- af-south-1
- ap-east-1
- ap-south-1
- ap-northeast-1
- ap-northeast-2
- ap-southeast-1
- ap-southeast-2
- ca-central-1
- cn-north-1
- cn-northwest-1
- eu-central-1
- eu-west-1
- eu-west-2
- eu-west-3
- eu-south-1
- eu-north-1
- me-south-1
- sa-east-1
- us-gov-east-1
- us-gov-west-1
domain:
type: string
description: A custom domain that will be automatically set up for your Express.js API.
roleName:
type: string
description: The name of an AWS IAM Role that contains custom permissions for your AWS Lambda function.
env:
type: env
description: Environment variables to be passed into your AWS Lambda function runtime.
layers:
type: array
items:
- type: string
description: An array of AWS Lambda Layer ARNs to attach to your AWS Lambda function.
min: 0
max: 5
traffic:
type: number
description: A percentage of traffic expressed as a decimal between 0.0 and 1.0 (e.g. 0.4) to serve your latest deployment to
min: 0
max: 1
vpc:
type: object
description: The VPC configuration for your AWS Lambda function
keys:
securityGroupIds:
type: array
items:
- type: string
subnetIds:
type: array
items:
- type: string
# remove
remove:
description: Removes your Express.js application from AWS Lambda, AWS HTTP API and more
# metrics
metrics:
description: Fetch metrics from your Express.js API