terraform-kubernetes-alb-ingress-controller icon indicating copy to clipboard operation
terraform-kubernetes-alb-ingress-controller copied to clipboard

Plan and Destroy fails if EKS cluster doesn't exist (not created yet or already destroyed)

Open pedrodparkes opened this issue 3 years ago • 4 comments

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" {

pedrodparkes avatar Aug 05 '21 22:08 pedrodparkes

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

msmith93 avatar Oct 04 '21 07:10 msmith93

Hi,

I am experiencing the same issue, adding dependency does not fix the issue.

nerijuskr9 avatar May 23 '22 13:05 nerijuskr9

Same issue..

shilpagupta-axtria avatar Nov 24 '22 14:11 shilpagupta-axtria

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.

reinier-millo avatar Feb 07 '23 01:02 reinier-millo