-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnapper-serverless.yaml
More file actions
28 lines (28 loc) · 912 Bytes
/
Copy pathsnapper-serverless.yaml
File metadata and controls
28 lines (28 loc) · 912 Bytes
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
AWSTemplateFormatVersion: '2010-09-09'
Description: Snapper Go application to take snapshot of volumes.
Resources:
Snapper:
Properties:
CodeUri: s3://vatit-lambdas/snapper-go/ce8a99aa5a3b186ec5514748e9f6f62a
Description: Takes snapshots of instance volumes.
Environment:
Variables:
OPTION: create
Events:
CreateSnapshots:
Properties:
Input: "{\n \"option\": \"create\"\n}\n"
Schedule: cron(0 2 ? * MON-FRI *)
Type: Schedule
DeleteSnapshots:
Properties:
Input: "{\n \"option\": \"delete\"\n}\n"
Schedule: cron(0 2 ? * MON-FRI *)
Type: Schedule
FunctionName: snapper-go
Handler: main
Role: arn:aws:iam::197094583576:role/snapper
Runtime: go1.x
Timeout: 15
Type: AWS::Serverless::Function
Transform: AWS::Serverless-2016-10-31