From 595fa6d8600cac8ccfc6a3d930dd743a2373c0ee Mon Sep 17 00:00:00 2001 From: jasonBirchall Date: Mon, 22 Feb 2021 16:46:58 +0000 Subject: [PATCH] Evaluate the repository with terraform0.13upgrade binary In our vision to upgrade Terraform to 0.13, we will need to run this binary over any Terraform files in our repository. --- example/versions.tf | 10 +++++++++- test/unit-test/versions.tf | 8 ++++++++ versions.tf | 14 ++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 test/unit-test/versions.tf create mode 100644 versions.tf diff --git a/example/versions.tf b/example/versions.tf index ac97c6a..199283f 100644 --- a/example/versions.tf +++ b/example/versions.tf @@ -1,4 +1,12 @@ terraform { - required_version = ">= 0.12" + required_version = ">= 0.13" + required_providers { + aws = { + source = "hashicorp/aws" + } + kubernetes = { + source = "hashicorp/kubernetes" + } + } } diff --git a/test/unit-test/versions.tf b/test/unit-test/versions.tf new file mode 100644 index 0000000..1d23dfe --- /dev/null +++ b/test/unit-test/versions.tf @@ -0,0 +1,8 @@ +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + } + } + required_version = ">= 0.13" +} diff --git a/versions.tf b/versions.tf new file mode 100644 index 0000000..221cae3 --- /dev/null +++ b/versions.tf @@ -0,0 +1,14 @@ +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + } + random = { + source = "hashicorp/random" + } + template = { + source = "hashicorp/template" + } + } + required_version = ">= 0.13" +}