-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
35 lines (34 loc) · 907 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
---
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Snapper Go application to take snapshot of volumes.
Resources:
Snapper:
Type: AWS::Serverless::Function
Properties:
Timeout: 15
Handler: main
Runtime: go1.x
FunctionName: snapper-go
Description: Takes snapshots of instance volumes.
Role: arn:aws:iam::197094583576:role/snapper
Environment:
Variables:
OPTION: create
Events:
CreateSnapshots:
Type: Schedule
Properties:
Schedule: cron(0 2 ? * MON-FRI *)
Input: |
{
"option": "create"
}
DeleteSnapshots:
Type: Schedule
Properties:
Schedule: cron(0 2 ? * MON-FRI *)
Input: |
{
"option": "delete"
}