aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tasks/data_snapshots.rake9
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