From 52d681822a7da9ff799115b6ab478b7e1b44a7b8 Mon Sep 17 00:00:00 2001 From: Joachim Hill-Grannec Date: Wed, 9 Jun 2021 11:38:20 -0400 Subject: [PATCH 1/5] update to terraform 1.0.0 --- build-docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-docker.sh b/build-docker.sh index d08bef9..a59d424 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -12,7 +12,7 @@ fi major=$(echo $tag | awk -F. '{print $1}') minor=$(echo $tag | awk -F. '{print $2}') -tf_ver="0.15.1" +tf_ver="1.0.0" echo "Confirm building images for:" echo " MAJOR: ${major}" From 99c5f3f0b1860b3b47145d4919ab3ec83fb58cd3 Mon Sep 17 00:00:00 2001 From: Tony Li Date: Thu, 8 Jul 2021 11:45:34 -0700 Subject: [PATCH 2/5] remove -lock and -lock-timeout for terraform init https://www.terraform.io/upgrade-guides/0-15.html#other-minor-command-line-behavior-changes > The -lock and -lock-timeout options are no longer available for the terraform init command. Locking applies to operations that can potentially change remote objects, to help ensure that two concurrent Terraform processes don't try to run conflicting operations, but terraform init does not interact with any providers in order to possibly effect such changes. > These options didn't do anything in the terraform init command before, and so you can remove them from any automated calls with no change in behavior. --- plugin.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/plugin.go b/plugin.go index e89e373..6646fcf 100644 --- a/plugin.go +++ b/plugin.go @@ -225,16 +225,6 @@ func initCommand(config InitOptions) *exec.Cmd { args = append(args, fmt.Sprintf("-backend-config=%s", v)) } - // True is default in TF - if config.Lock != nil { - args = append(args, fmt.Sprintf("-lock=%t", *config.Lock)) - } - - // "0s" is default in TF - if config.LockTimeout != "" { - args = append(args, fmt.Sprintf("-lock-timeout=%s", config.LockTimeout)) - } - // Fail Terraform execution on prompt args = append(args, "-input=false") From 649199ed5a142a06a949a014701cf488caca9d7f Mon Sep 17 00:00:00 2001 From: Jacob McCann Date: Fri, 9 Jul 2021 10:06:12 -0500 Subject: [PATCH 3/5] version: 8.2-0.15.1 --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee859ef..0679575 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 8.2-0.15.1 (2021-06-02) +* fix: `-force` -> `-auto-approve` - https://github.com/jmccann/drone-terraform/pull/128 + ## 8.1-0.15.1 (2021-04-27) * added ability to [disable refresh](https://github.com/jmccann/drone-terraform/pull/120) From 34c2b93e0f6db72836200aa522fb54471d2080c4 Mon Sep 17 00:00:00 2001 From: Jacob McCann Date: Fri, 9 Jul 2021 10:22:48 -0500 Subject: [PATCH 4/5] version: 8.3-0.15.1 --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0679575..9dce2e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 8.3-0.15.1 (2021-07-09) +* fix: remove -lock and -lock-timeout for terraform init - https://github.com/jmccann/drone-terraform/pull/130 + ## 8.2-0.15.1 (2021-06-02) * fix: `-force` -> `-auto-approve` - https://github.com/jmccann/drone-terraform/pull/128 From 24156d51b0249e1b986ca2357b7d5d369663f910 Mon Sep 17 00:00:00 2001 From: Jacob McCann Date: Fri, 9 Jul 2021 10:30:55 -0500 Subject: [PATCH 5/5] version: 8.3-1.0.2 --- CHANGELOG.md | 5 +++++ build-docker.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dce2e7..e4b3bad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 8.3-1.0.2 (2021-07-09) +* Update embedded TF to `1.0.2` + * A continuation of `v0.15` release line but now following semver + * Please refer to [Terraform v1.0 Compatibility Promises](https://www.terraform.io/docs/language/v1-compatibility-promises.html) + ## 8.3-0.15.1 (2021-07-09) * fix: remove -lock and -lock-timeout for terraform init - https://github.com/jmccann/drone-terraform/pull/130 diff --git a/build-docker.sh b/build-docker.sh index a59d424..4b23861 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -12,7 +12,7 @@ fi major=$(echo $tag | awk -F. '{print $1}') minor=$(echo $tag | awk -F. '{print $2}') -tf_ver="1.0.0" +tf_ver="1.0.2" echo "Confirm building images for:" echo " MAJOR: ${major}"