-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathserverless.yml
More file actions
64 lines (59 loc) · 2.63 KB
/
serverless.yml
File metadata and controls
64 lines (59 loc) · 2.63 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
57
58
59
60
61
62
63
64
service: mes-documents-service
provider:
name: aws
runtime: nodejs20.x
environment:
NOTIFY_HOSTNAME: http://www.example.com
USE_NOTIFY: false
IS_LOCAL: true
NOTIFY_RETRY_LIMIT: 2
NOTIFY_TIMEOUT: 10000
NOTIFY_API_KEY: 'api-key'
NOTIFY_EMAIL_PASS_TEMPLATE_ID: 'email-pass-template-id'
NOTIFY_EMAIL_FAIL_TEMPLATE_ID: 'email-fail-template-id'
NOTIFY_EMAIL_WELSH_PASS_TEMPLATE_ID: 'email-welsh-pass-template-id'
NOTIFY_EMAIL_WELSH_FAIL_TEMPLATE_ID: 'email-welsh-fail-template-id'
NOTIFY_POST_PASS_TEMPLATE_ID: 'post-pass-template-id'
NOTIFY_POST_FAIL_TEMPLATE_ID: 'post-fail-template-id'
NOTIFY_POST_WELSH_PASS_TEMPLATE_ID: 'post-welsh-pass-template-id'
NOTIFY_POST_WELSH_FAIL_TEMPLATE_ID: 'post-welsh-fail-template-id'
NOTIFY_EMAIL_PASS_TEMPLATE_ID_VOCATIONAL: 'email-vocational-pass-template-id'
NOTIFY_EMAIL_FAIL_TEMPLATE_ID_VOCATIONAL: 'email-vocational-fail-template-id'
NOTIFY_EMAIL_WELSH_PASS_TEMPLATE_ID_VOCATIONAL: 'email-welsh-vocational-pass-template-id'
NOTIFY_EMAIL_WELSH_FAIL_TEMPLATE_ID_VOCATIONAL: 'email-welsh-vocational-fail-template-id'
NOTIFY_POST_PASS_TEMPLATE_ID_VOCATIONAL: 'post-vocational-pass-template-id'
NOTIFY_POST_FAIL_TEMPLATE_ID_VOCATIONAL: 'post-vocational-fail-template-id'
NOTIFY_POST_WELSH_PASS_TEMPLATE_ID_VOCATIONAL: 'post-welsh-vocational-pass-template-id'
NOTIFY_POST_WELSH_FAIL_TEMPLATE_ID_VOCATIONAL: 'post-welsh-vocational-fail-template-id'
NOTIFY_EMAIL_PASS_TEMPLATE_ID_AMOD1: 'email-pass-mod1-template-id'
NOTIFY_EMAIL_FAIL_TEMPLATE_ID_AMOD1: 'email-fail-mod1-template-id'
NOTIFY_EMAIL_WELSH_PASS_TEMPLATE_ID_AMOD1: 'email-welsh-pass-mod1-template-id'
NOTIFY_EMAIL_WELSH_FAIL_TEMPLATE_ID_AMOD1: 'email-welsh-fail-mod1-template-id'
NOTIFY_POST_PASS_TEMPLATE_ID_AMOD1: 'post-pass-mod1-template-id'
NOTIFY_POST_FAIL_TEMPLATE_ID_AMOD1: 'post-fail-mod1-template-id'
NOTIFY_POST_WELSH_PASS_TEMPLATE_ID_AMOD1: 'post-welsh-pass-mod1-template-id'
NOTIFY_POST_WELSH_FAIL_TEMPLATE_ID_AMOD1: 'post-welsh-fail-mod1-template-id'
RESULTS_API_BASE_URL: 'results-api-base-url'
package:
individually: true
functions:
sendCandidateResults:
handler: src/functions/sendCandidateResults/framework/handler.handler
events:
- http:
path: 'test'
method: get
timeout: 60
reservedConcurrency: 1
custom:
webpack:
webpackConfig: 'webpack-sls-offline.config.js'
serverless-offline-http-mock:
- hostname: ${self:provider.environment.NOTIFY_HOSTNAME}
directory: 'mocks'
mocks:
- index.js
plugins:
- serverless-offline-http-mock
- serverless-offline
- serverless-webpack