From 566feafb2f19b518977e2f722bd8c96078334837 Mon Sep 17 00:00:00 2001 From: Zack Hsi Date: Wed, 22 Jul 2015 10:51:16 -0700 Subject: [PATCH] Ensure daily & weekly dynamo backups exist --- ops/orca/confidant.sls | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/ops/orca/confidant.sls b/ops/orca/confidant.sls index f50b9260..5e1a8f1b 100644 --- a/ops/orca/confidant.sls +++ b/ops/orca/confidant.sls @@ -49,6 +49,33 @@ Ensure DynamoDB table exists: - range_key: revision - range_key_data_type: N - profile: orca_profile + +Ensure daily DynamoDB backups exist: + boto_datapipeline.present: + - name: {{ grains.cluster_name }}-daily-backup + - pipeline_objects: + DefaultSchedule: + name: Every 1 day + fields: + period: 1 Day + type: Schedule + startAt: FIRST_ACTIVATION_DATE_TIME + - parameter_values: + myDDBTableName: {{ grains.cluster_name }} + +Ensure weekly DynamoDB backups exists: + boto_datapipeline.present: + - name: {{ grains.cluster_name }}-weekly-backup + - pipeline_objects: + DefaultSchedule: + name: Every 1 week + fields: + period: 1 Week + type: Schedule + startAt: FIRST_ACTIVATION_DATE_TIME + - parameter_values: + myDDBTableName: {{ grains.cluster_name }} + {% endif %} Ensure {{ grains.cluster_name }} security group exists: