Skip to content

Commit 3452015

Browse files
SadriG91larstobi
andauthored
Upgraded to TF 0.14 (#47)
* Upgraded to TF 0.14 * Added null provider Co-authored-by: Lars Tobias Skjong-Børsting <larstobi@relatime.no>
1 parent 763c9bb commit 3452015

File tree

8 files changed

+117
-10
lines changed

8 files changed

+117
-10
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ jobs:
1414
with: { go-version: 1.14 }
1515

1616
- name: Install Terraform
17-
run: |
18-
curl -sL https://releases.hashicorp.com/terraform/0.12.21/terraform_0.12.21_linux_amd64.zip -o terraform.zip
19-
sudo unzip terraform.zip -d /usr/bin && rm -f terraform.zip
20-
17+
uses: hashicorp/setup-terraform@v1
18+
with: { terraform_version: 0.14.6 }
2119
- name: Install Taskfile
2220
run: curl -sL https://taskfile.dev/install.sh | sh
2321

examples/basic/.terraform.lock.hcl

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/basic/main.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
# Create a ecs service using fargate
33
# ----------------------------------------
44
terraform {
5-
required_version = ">= 0.12"
5+
required_version = ">= 0.14"
66
}
77

88
provider "aws" {
9-
version = ">= 2.17"
10-
region = var.region
9+
region = var.region
1110
}
1211

1312
data "aws_vpc" "main" {

examples/basic/versions.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
terraform {
2+
required_providers {
3+
aws = {
4+
version = ">= 3.0"
5+
source = "hashicorp/aws"
6+
}
7+
}
8+
required_version = ">= 0.14"
9+
}

examples/secrets/.terraform.lock.hcl

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/secrets/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ terraform {
66
}
77

88
provider "aws" {
9-
version = ">= 2.17"
10-
region = var.region
9+
10+
region = var.region
1111
}
1212

1313
data "aws_vpc" "main" {

examples/secrets/versions.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
terraform {
2+
required_providers {
3+
aws = {
4+
source = "hashicorp/aws"
5+
version = ">= 3.0"
6+
}
7+
null = {
8+
source = "hashicorp/null"
9+
version = "~> 3.1.0"
10+
}
11+
12+
}
13+
required_version = ">= 0.14"
14+
15+
}

versions.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
terraform {
2-
required_version = ">= 0.12"
2+
required_version = ">= 0.14"
33

44
required_providers {
55
aws = {
66
version = ">= 3.34.0"
77
}
8+
null = {
9+
source = "hashicorp/null"
10+
version = "~> 3.1.0"
11+
}
812
}
913
}

0 commit comments

Comments
 (0)