Skip to content

Commit

Permalink
Merge pull request #32 from SadriG91/master
Browse files Browse the repository at this point in the history
upgraded to Terraform 0.14
  • Loading branch information
rickardl authored Feb 11, 2021
2 parents c08f3e1 + 6508450 commit c52d516
Show file tree
Hide file tree
Showing 11 changed files with 105 additions and 14 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ jobs:
with: { go-version: 1.14 }

- name: Install Terraform
run: |
curl -sL https://releases.hashicorp.com/terraform/0.12.21/terraform_0.12.21_linux_amd64.zip -o terraform.zip
sudo unzip terraform.zip -d /usr/bin && rm -f terraform.zip
uses: hashicorp/setup-terraform@v1
with: { terraform_version: 0.14.6 }

- name: Install Taskfile
run: curl -sL https://taskfile.dev/install.sh | sh
Expand Down
20 changes: 20 additions & 0 deletions examples/basic/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
terraform {
required_version = ">= 0.12"
required_version = ">= 0.14"
}

provider "aws" {
version = ">= 2.17"
region = var.region
#version = ">= 3.27" This is moved into required_providers block on TF 0.14
region = var.region
}

module "vpc" {
Expand Down
9 changes: 9 additions & 0 deletions examples/basic/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
terraform {
required_providers {
aws = {
version = "~> 3.0"
source = "hashicorp/aws"
}
}
required_version = ">= 0.14"
}
20 changes: 20 additions & 0 deletions examples/complete/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
terraform {
required_version = ">= 0.12"
required_version = ">= 0.14"
}

provider "aws" {
version = ">= 2.17"
region = var.region
#version = ">= 3.27" ##This is moved to required_providers block on TF 0.14
region = var.region
}

module "vpc" {
Expand Down
9 changes: 9 additions & 0 deletions examples/complete/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
terraform {
required_providers {
aws = {
version = "~> 3.0"
source = "hashicorp/aws"
}
}
required_version = ">= 0.14"
}
20 changes: 20 additions & 0 deletions examples/interface-endpoint/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/interface-endpoint/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
provider "aws" {
version = ">= 2.17"
region = var.region
#version = ">= 3.27" ##This is moved to required_providers block on TF 0.14
region = var.region
}

data "aws_availability_zones" "main" {}
Expand Down
9 changes: 9 additions & 0 deletions examples/interface-endpoint/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
terraform {
required_providers {
aws = {
version = "~> 3.0"
source = "hashicorp/aws"
}
}
required_version = ">= 0.14"
}
11 changes: 8 additions & 3 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

terraform {
required_version = ">= 0.12"
}
required_providers {
aws = {
version = "~> 3.0"
source = "hashicorp/aws"
}
}
required_version = ">= 0.14"
}

0 comments on commit c52d516

Please sign in to comment.