Skip to content

Commit d20afe6

Browse files
committed
Update provider configurations: add version constraints for AWS, Kubernetes, Helm, and Time providers
1 parent 48fb317 commit d20afe6

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

Terraform/0-versions.tf

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
}
6-
helm = {
7-
source = "hashicorp/helm"
5+
version = ">= 5.0.0"
86
}
97
kubernetes = {
108
source = "hashicorp/kubernetes"
9+
version = ">= 2.25.0"
10+
}
11+
helm = {
12+
source = "hashicorp/helm"
13+
version = ">= 2.13.2"
1114
}
1215
time = {
1316
source = "hashicorp/time"
17+
version = ">= 0.11.1"
1418
}
1519
}
16-
}
20+
21+
required_version = ">= 1.7.0"
22+
}

Terraform/1-provider.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ provider "kubernetes" {
99
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
1010

1111
exec {
12-
api_version = "client.authentication.k8s.io/v1" # use v1 (v1beta1 is deprecated)
12+
api_version = "client.authentication.k8s.io/v1"
1313
command = "aws"
1414
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name]
1515
}
1616
}
1717

18-
# Helm Provider (latest version syntax)
18+
# Helm Provider (must be v2.x+)
1919
provider "helm" {
20-
kubernetes = {
20+
kubernetes {
2121
host = module.eks.cluster_endpoint
2222
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
2323

24-
exec = {
24+
exec {
2525
api_version = "client.authentication.k8s.io/v1"
2626
command = "aws"
2727
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name]

0 commit comments

Comments
 (0)