-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathserverless.yml
38 lines (33 loc) · 829 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
# For full config options, check the docs:
# docs.serverless.com
service: serverless-template
plugins:
- serverless-plugin-typescript
- serverless-stack-output
provider:
name: aws
runtime: nodejs10.x
stage: ${opt:stage, 'dev'}
region: eu-west-1
custom:
stage: ${opt:stage, 'dev'}
output:
file: .serverless/output.json
resources:
Outputs:
ApiUrl:
Description: "The API Gateway URL"
Value:
Fn::Join:
- ""
- - "https://"
- Ref: ApiGatewayRestApi
- ".execute-api.${self:provider.region}.amazonaws.com/${self:provider.stage}"
functions:
healthcheck:
handler: src/functions/healthcheck.healthcheck
description: Healthcheck to ensure the service is up
events:
- http:
path: healthcheck
method: get