Skip to content

Commit

Permalink
Merge pull request #67 from lyft/dynamo-backups
Browse files Browse the repository at this point in the history
Ensure daily & weekly dynamo backups exist
  • Loading branch information
Zack Hsi committed Jul 22, 2015
2 parents fdddca9 + 566feaf commit c9a72a1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ops/orca/confidant.sls
Expand Up @@ -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:
Expand Down

0 comments on commit c9a72a1

Please sign in to comment.