diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-03 14:16:58 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-03 14:16:58 +0100 |
commit | c087576f60213b3dce45074b79b13c752f070d5c (patch) | |
tree | a4d7c2e2092538c99a4dd16b06217ef462e8ebdc /lib | |
parent | d5616c7f0f9f36d640ad60a69d3b235efabe77e4 (diff) | |
download | govuk-mini-environment-admin-c087576f60213b3dce45074b79b13c752f070d5c.tar govuk-mini-environment-admin-c087576f60213b3dce45074b79b13c752f070d5c.tar.gz |
Add support for destroying Terraform AWS backends
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/backend.rake | 7 |
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 |