Skip to content

Commit 296e9dd

Browse files
committed
Update destroy configuration to use hardcoded EKS cluster name for kubectl
1 parent 6dc1e62 commit 296e9dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Terraform/3-main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ EOF
8787
provisioner "local-exec" {
8888
when = destroy
8989
command = <<EOF
90-
# Configure kubectl for destroy
91-
aws eks update-kubeconfig --name ${module.eks.cluster_name} --region us-east-1 || true
90+
# Configure kubectl for destroy (using hardcoded cluster name)
91+
aws eks update-kubeconfig --name otel-cluster --region us-east-1 || true
9292
kubectl delete application solar-system -n argocd --ignore-not-found=true
9393
EOF
9494
}

0 commit comments

Comments
 (0)