generated from noobj/Best-README-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
57 lines (51 loc) · 1.14 KB
/
template.yaml
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
AWSTemplateFormatVersion: "2010-09-09"
Description: "An example Golang AWS SAM Lambda project."
Transform: "AWS::Serverless-2016-10-31"
Parameters:
VaultToken:
Type: "String"
Globals:
Function:
Tracing: Active
Runtime: "go1.x"
Api:
TracingEnabled: True
Domain:
SecurityPolicy: TLS_1_2
Resources:
exampleOne:
Type: "AWS::Serverless::Function"
Properties:
Handler: bin/sync_receiver
Events:
ApiEvent:
Type: "HttpApi"
Api:
Type: "Api"
Properties:
Path: "/sync"
Method: "get"
exampleTwo:
Type: "AWS::Serverless::Function"
Properties:
Handler: bin/login
Events:
ApiEvent:
Type: "HttpApi"
Api:
Type: "Api"
Properties:
Path: "/auth/login"
Method: "post"
exampleThree:
Type: "AWS::Serverless::Function"
Properties:
Handler: bin/sync_callback
Events:
ApiEvent:
Type: "HttpApi"
Api:
Type: "Api"
Properties:
Path: "/sync/callback"
Method: "get"