-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.yml
47 lines (39 loc) · 937 Bytes
/
template.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
AWSTemplateFormatVersion: "2010-09-09"
Description: "An example Golang AWS SAM Lambda project."
Transform: "AWS::Serverless-2016-10-31"
Parameters:
VaultToken:
Type: "String"
Globals:
Function:
Handler: "main"
Timeout: 10
Runtime: "go1.x"
Resources:
exampleOne:
Type: "AWS::Serverless::Function"
Properties:
CodeUri: "cmd/one"
Environment:
Variables:
CUSTOM_ENV_VAR: "This is a value from an environment variable for Lambda one."
Events:
ApiEvent:
Type: "HttpApi"
Api:
Type: "Api"
Properties:
Path: "/one"
Method: "get"
exampleTwo:
Type: "AWS::Serverless::Function"
Properties:
CodeUri: "cmd/two"
Events:
ApiEvent:
Type: "HttpApi"
Api:
Type: "Api"
Properties:
Path: "/two/{customPath}"
Method: "post"