diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-03 17:04:15 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-03 17:04:15 +0100 |
commit | de900ba3bd3b9b5e63492bd66ccf4986fa2b1d1b (patch) | |
tree | b2ace111760517d9b27a85771077af9f03a1256e | |
parent | c2b37bc08fa61c8d7ca4ce4965c21039b993e757 (diff) | |
download | govuk-mini-environment-admin-de900ba3bd3b9b5e63492bd66ccf4986fa2b1d1b.tar govuk-mini-environment-admin-de900ba3bd3b9b5e63492bd66ccf4986fa2b1d1b.tar.gz |
Add a rake task to create data snapshots
For the AWS backend.
-rw-r--r-- | lib/tasks/data_snapshots.rake | 9 |
1 files changed, 9 insertions, 0 deletions
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 |