diff options
Diffstat (limited to 'lib/tasks')
-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 |