This repository was archived by the owner on Mar 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtemplate.yaml
More file actions
70 lines (67 loc) · 2.15 KB
/
template.yaml
File metadata and controls
70 lines (67 loc) · 2.15 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
65
66
67
68
69
70
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
TAPILocal
Sample SAM Template for TradeAPILocal
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
Timeout: 60
Resources:
TapiFunction:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: api/
Handler: uk.gov.dvsa.mot.app.LambdaHandler::handleRequest
Runtime: java8
Architectures:
- x86_64
MemorySize: 512
Environment: # More info about Env Vars: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object
Variables:
MOTH_API_URL:
MOTH_API_KEY:
MOTH_API_CONNECTION_TIMEOUT:
DATABASE_USERNAME:
DATABASE_CONNECTION:
DATABASE_PASSWORD:
OBFUSCATION_SECRET:
ANNUAL_TESTS_MAX_QUERYABLE_REGISTRATIONS:
LOG_LEVEL:
APP_ENV:
Events:
motTests:
Type: Api
Properties:
Path: /trade/vehicles/mot-tests
Method: GET
AnnualTests:
Type: Api
Properties:
Path: /trade/vehicles/annual-tests
Method: GET
MotrSearch:
Type: Api
Properties:
Path: /motr/v2/search/registration/{registration}
Method: GET
MotrSearchCommerical:
Type: Api
Properties:
Path: /motr/v2/search/commercial/registration/{registration}
Method: GET
MotrSearchDvlaId:
Type: Api
Properties:
Path: /motr/v2/search/dvla-id/{id}
Method: GET
MotrSearchMotTestNumber:
Type: Api
Properties:
Path: /motr/v2/search/mot-test/{motTestNumber}
Method: GET
MothRegAndMake:
Type: Api
Properties:
Path: /mot-history/{registration}/{make}
Method: GET