Skip to content

Commit ff93195

Browse files
author
João Taveira Araújo
authored
fix: update required_providers syntax (#67)
We no longer need terraform v0.12 compatibility, update syntax to appease tflint.
1 parent 665da06 commit ff93195

File tree

9 files changed

+57
-14
lines changed

9 files changed

+57
-14
lines changed

examples/cloudtrail/versions.tf

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@ terraform {
22
required_version = ">= 1.1.0"
33

44
required_providers {
5-
aws = ">= 2.68"
6-
random = ">= 3.0.0"
7-
local = ">= 2.0.0"
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 2.68"
8+
}
9+
random = {
10+
source = "hashicorp/random"
11+
version = ">= 3.0.0"
12+
}
13+
local = {
14+
source = "hashicorp/local"
15+
version = ">= 2.0.0"
16+
}
817
}
918
}

examples/s3_access_logs/versions.tf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ terraform {
22
required_version = ">= 1.1.0"
33

44
required_providers {
5-
aws = ">= 3.75"
6-
random = ">= 3.0.0"
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 3.75"
8+
}
9+
random = {
10+
source = "hashicorp/random"
11+
version = ">= 3.0.0"
12+
}
713
}
814
}

examples/s3_bucket/versions.tf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ terraform {
22
required_version = ">= 1.1.0"
33

44
required_providers {
5-
aws = ">= 4.9"
6-
random = ">= 3.0.0"
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 4.9"
8+
}
9+
random = {
10+
source = "hashicorp/random"
11+
version = ">= 3.0.0"
12+
}
713
}
814
}

examples/vpc_config/versions.tf

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ terraform {
22
required_version = ">= 1.1.0"
33

44
required_providers {
5-
aws = ">= 3.75"
6-
random = ">= 3.0.0"
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 3.75"
8+
}
9+
random = {
10+
source = "hashicorp/random"
11+
version = ">= 3.0.0"
12+
}
13+
714
}
815
}

modules/cloudwatch_logs_subscription/versions.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ terraform {
22
required_version = ">= 1.1.0"
33

44
required_providers {
5-
aws = ">= 2.68"
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 2.68"
8+
}
69
}
710
}

modules/s3_bucket/versions.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ terraform {
22
required_version = ">= 1.1.0"
33

44
required_providers {
5-
aws = ">= 4.9"
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 4.9"
8+
}
69
}
710
}

modules/s3_bucket_subscription/versions.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ terraform {
22
required_version = ">= 1.1.0"
33

44
required_providers {
5-
aws = ">= 2.68"
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 2.68"
8+
}
69
}
710
}

modules/snapshot/versions.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ terraform {
22
required_version = ">= 1.1.0"
33

44
required_providers {
5-
aws = ">= 2.68"
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 2.68"
8+
}
69
}
710
}

versions.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ terraform {
22
required_version = ">= 1.1.0"
33

44
required_providers {
5-
aws = ">= 2.68"
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 2.68"
8+
}
69
}
710
}

0 commit comments

Comments
 (0)