Skip to content

Commit

Permalink
Fix connectivity issues with AWS EKS via Terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Jul 15, 2021
1 parent 82b491c commit 0b2ece5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ provider "kubernetes" {
cluster_ca_certificate = module.kubernetes.credentials.cluster_ca_certificate
token = module.kubernetes.credentials.token
{% endif %}
{% if cookiecutter.provider == "aws" %}
exec {
api_version = "client.authentication.k8s.io/v1alpha1"
args = ["eks", "get-token", "--cluster-name", local.cluster_name]
command = "aws"
}
{% endif %}
}

provider "kubernetes-alpha" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ terraform {
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "2.0.2"
version = "2.3.2"
}
kubernetes-alpha = {
source = "hashicorp/kubernetes-alpha"
Expand Down

0 comments on commit 0b2ece5

Please sign in to comment.