aboutsummaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-03 14:16:58 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-03 14:16:58 +0100
commitc087576f60213b3dce45074b79b13c752f070d5c (patch)
treea4d7c2e2092538c99a4dd16b06217ef462e8ebdc /lib/tasks
parentd5616c7f0f9f36d640ad60a69d3b235efabe77e4 (diff)
downloadgovuk-mini-environment-admin-c087576f60213b3dce45074b79b13c752f070d5c.tar
govuk-mini-environment-admin-c087576f60213b3dce45074b79b13c752f070d5c.tar.gz
Add support for destroying Terraform AWS backends
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/backend.rake7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tasks/backend.rake b/lib/tasks/backend.rake
index b2db905..c23a3df 100644
--- a/lib/tasks/backend.rake
+++ b/lib/tasks/backend.rake
@@ -15,5 +15,12 @@ namespace :backend do
.find(args.backend_id)
.deploy_backend
end
+
+ desc 'Destroy a Terraform AWS backend'
+ task :destroy, [:backend_id] => :environment do |t, args|
+ Backends::TerraformAws
+ .find(args.backend_id)
+ .destroy_backend
+ end
end
end