From de900ba3bd3b9b5e63492bd66ccf4986fa2b1d1b Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 3 Jun 2018 17:04:15 +0100 Subject: Add a rake task to create data snapshots For the AWS backend. --- lib/tasks/data_snapshots.rake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/tasks/data_snapshots.rake b/lib/tasks/data_snapshots.rake index cdc6699..a080ba9 100644 --- a/lib/tasks/data_snapshots.rake +++ b/lib/tasks/data_snapshots.rake @@ -5,4 +5,13 @@ namespace :data_snapshots do GovukGuix::CreateDataSnapshotJob.enqueue end end + + namespace :terraform_aws do + desc 'Create a new data snapshot for a libvirt backend' + task :create, [:backend_id] => :environment do |t, args| + Backends::TerraformAws + .find(args.backend_id) + .create_data_snapshot + end + end end -- cgit v1.2.3