-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtemplate.yaml
39 lines (36 loc) · 843 Bytes
/
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Globals:
Function:
Timeout: 5
Resources:
PipotronGetFunction:
Type: AWS::Serverless::Function
Properties:
Handler: functions-build/pipotron
Runtime: go1.x
Tracing: Active
Events:
Request:
Type: Api
Properties:
Path: /run
Method: GET
PipotronPostFunction:
Type: AWS::Serverless::Function
Properties:
Handler: functions-build/pipotron
Runtime: go1.x
Tracing: Active
Events:
Request:
Type: Api
Properties:
Path: /run
Method: POST
Outputs:
GraphmanAPI:
PipotronGetFunction:
Value: !GetAtt PipotronGetFunction.Arn
PipotronPostFunction:
Value: !GetAtt PipotronPostFunction.Arn