-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtemplate.yaml
26 lines (24 loc) · 829 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
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Globals:
Function:
Timeout: 30
Resources:
PreviewFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./
Handler: dist/preview
Runtime: go1.x
Tracing: Active
Events:
CatchAll:
Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
Properties:
Path: /render
Method: any
Environment: # More info about Env Vars: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object
Variables:
HUGO_PREVIEW_GITHUB_TOKEN: ""
HUGO_PREVIEW_GITHUB_REPO: ""
HUGO_PREVIEW_BASE: ""