Skip to content

Commit

Permalink
Upgraded to TF 0.14 (#47)
Browse files Browse the repository at this point in the history
* Upgraded to TF 0.14

* Added null provider

Co-authored-by: Lars Tobias Skjong-Børsting <[email protected]>
  • Loading branch information
SadriG91 and larstobi authored Mar 29, 2021
1 parent 763c9bb commit 3452015
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +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
41 changes: 41 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.

5 changes: 2 additions & 3 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
# Create a ecs service using fargate
# ----------------------------------------
terraform {
required_version = ">= 0.12"
required_version = ">= 0.14"
}

provider "aws" {
version = ">= 2.17"
region = var.region
region = var.region
}

data "aws_vpc" "main" {
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"
}
41 changes: 41 additions & 0 deletions examples/secrets/.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/secrets/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ terraform {
}

provider "aws" {
version = ">= 2.17"
region = var.region

region = var.region
}

data "aws_vpc" "main" {
Expand Down
15 changes: 15 additions & 0 deletions examples/secrets/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.0"
}
null = {
source = "hashicorp/null"
version = "~> 3.1.0"
}

}
required_version = ">= 0.14"

}
6 changes: 5 additions & 1 deletion versions.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
terraform {
required_version = ">= 0.12"
required_version = ">= 0.14"

required_providers {
aws = {
version = ">= 3.34.0"
}
null = {
source = "hashicorp/null"
version = "~> 3.1.0"
}
}
}

0 comments on commit 3452015

Please sign in to comment.