From baff3b84aa957789beb321f266e5ef2d1557d236 Mon Sep 17 00:00:00 2001 From: Caio Quirino Date: Mon, 22 Jul 2019 16:20:29 +0200 Subject: [PATCH] Updated DOCS to have the new tf_data_dir param --- DOCS.md | 16 ++++++++++++++++ main.go | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/DOCS.md b/DOCS.md index a057786..2aa332d 100644 --- a/DOCS.md +++ b/DOCS.md @@ -196,6 +196,19 @@ pipeline: + check: true ``` +You may want to run some executions in parallel without having racing condition problems with the .terraform dir and +plan's output file. + +```diff +pipeline: + backend-service: + image: jmccann/drone-terraform: ++ tf_data_dir: .backend-service.terraform + frontend-service: + image: jmccann/drone-terraform: ++ tf_data_dir: .frontend-service.terraform +``` + # Parameter Reference actions @@ -253,3 +266,6 @@ root_dir parallelism : The number of concurrent operations as Terraform walks its graph. + +tf_data_dir +: changes the location where Terraform keeps its per-working-directory data, such as the current remote backend configuration. diff --git a/main.go b/main.go index 73aef4f..7f230b0 100644 --- a/main.go +++ b/main.go @@ -110,7 +110,7 @@ func main() { }, cli.StringFlag{ Name: "tf_data_dir", - Usage: "changes the location where Terraform keeps its per-working-directory data, such as the current remote backend configuration.", + Usage: "changes the location where Terraform keeps its per-working-directory data, such as the current remote backend configuration", EnvVar: "PLUGIN_TF_DATA_DIR", }, }