-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
45 lines (40 loc) · 956 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
40
41
42
43
44
45
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
commit-tracker
Commit tracker for GitHub profile.
Parameters:
pEnvFilter:
Type: String
Description: Log Filter
pGitHubToken:
Type: String
Description: GitHub Personal Access Token
pGitHubConfig:
Type: String
Description: GitHub Config
Resources:
CommitTrackerFunction:
Type: AWS::Serverless::Function
Metadata:
BuildMethod: rust-cargolambda
Properties:
FunctionName: commit-tracker
CodeUri: ./
Handler: bootstrap
Runtime: provided.al2
Architectures:
- x86_64
Timeout: 300
MemorySize: 128
Environment:
Variables:
ENV_FILTER: !Ref pEnvFilter
GH_TOKEN: !Ref pGitHubToken
GH_CONFIG: !Ref pGitHubConfig
Events:
Get:
Type: Api
Properties:
Path: /
Method: get