Skip to content

Commit

Permalink
Merge pull request #13 from nimbux911/fix/required_providers
Browse files Browse the repository at this point in the history
adding required_versions for tf providers
  • Loading branch information
qemanuel authored Jun 27, 2022
2 parents 514a72b + 34d5c04 commit 51778b8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.1.5] - 2022-06-27

### Fixed
- terraform required_providers added [Issue #12](https://github.com/nimbux911/terraform-aws-eks/issues/12)

## [3.1.4] - 2022-06-22

### Added
Expand Down
27 changes: 24 additions & 3 deletions provider.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@


terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">=3.0, ~> 4.20"
}

kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2.11"
}

helm = {
source = "hashicorp/helm"
version = "2.5.1"
}
}
}



provider "kubernetes" {
host = aws_eks_cluster.main.endpoint
cluster_ca_certificate = base64decode(aws_eks_cluster.main.certificate_authority.0.data)
Expand All @@ -11,8 +32,8 @@ provider "kubernetes" {

provider "helm" {
kubernetes {
host = aws_eks_cluster.main.endpoint
cluster_ca_certificate = base64decode(aws_eks_cluster.main.certificate_authority.0.data)
host = aws_eks_cluster.main.endpoint
cluster_ca_certificate = base64decode(aws_eks_cluster.main.certificate_authority.0.data)
exec {
api_version = "client.authentication.k8s.io/v1alpha1"
args = ["eks", "get-token", "--cluster-name", var.cluster_name]
Expand Down

0 comments on commit 51778b8

Please sign in to comment.