Skip to content

Commit

Permalink
update ref
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Jul 19, 2024
1 parent 712ca16 commit 55879df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ resource "aws_security_group_rule" "allow_sidecar_injection" {
# Update KubeConfig after cluster complete
################################################################
resource "null_resource" "kube_config_create" {
depends_on = [module.eks.cluster_name]
depends_on = [module.cluster.cluster_name]
provisioner "local-exec" {
interpreter = ["/bin/bash", "-c"]
command = "aws eks --region ${var.region} update-kubeconfig --name ${module.eks.cluster_name} --profile=${var.profile} && export KUBE_CONFIG_PATH=~/.kube/config && export KUBERNETES_MASTER=~/.kube/config"
command = "aws eks --region ${var.region} update-kubeconfig --name ${module.cluster.cluster_name} --profile=${var.profile} && export KUBE_CONFIG_PATH=~/.kube/config && export KUBERNETES_MASTER=~/.kube/config"
}
}

Expand Down

0 comments on commit 55879df

Please sign in to comment.