terraform-kubernetes-alb-ingress-controller
terraform-kubernetes-alb-ingress-controller copied to clipboard
Plan and Destroy fails if EKS cluster doesn't exist (not created yet or already destroyed)
Error: error reading EKS Cluster (my_cluster): couldn't find resource
on .terraform/modules/alb_ingress_controller/main.tf line 21, in data "aws_eks_cluster" "selected": 21: data "aws_eks_cluster" "selected" {
Would adding a dependency fix the issue?
depends_on = [module.eks.cluster_id]
Either way, it seems like the module should automatically detect that dependency
Hi,
I am experiencing the same issue, adding dependency does not fix the issue.
Same issue..
Would adding a dependency fix the issue?
depends_on = [module.eks.cluster_id]
Either way, it seems like the module should automatically detect that dependency
Thanks, this solve my problem.