From 8e81b54bd3401689e0ac299d6b1a355ce77df875 Mon Sep 17 00:00:00 2001 From: "marcin.suterski" Date: Tue, 8 Aug 2017 17:31:32 -0400 Subject: [PATCH] Update docs with the destroy option --- DOCS.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/DOCS.md b/DOCS.md index d65bd6c..63d97f5 100644 --- a/DOCS.md +++ b/DOCS.md @@ -168,6 +168,16 @@ pipeline: + AWS_SECRET_ACCESS_KEY: PROD_AWS_SECRET_ACCESS_KEY ``` +Destroying the service can be done using the boolean `destory` option. Keep in mind that Fastly won't allow a service with active version be destoryed. Use `force_destroy` option in the service definition for terraform to handle it. + +```yaml +pipeline: + destroy: + image: jmccann/drone-terraform:1 + plan: false ++ destroy: true +``` + # Parameter Reference plan @@ -215,3 +225,6 @@ root_dir parallelism : The number of concurrent operations as Terraform walks its graph. + +destroy (boolean) +: Destroys the service (still requires [`force_destroy`](https://www.terraform.io/docs/providers/fastly/r/service_v1.html#force_destroy) option to be set in the service definition) \ No newline at end of file