qvest-digital / terraform-kubernetes-alb-ingress-controller

Terraform module to ease deployment of the AWS ALB Ingress Controller
https://registry.terraform.io/modules/iplabs/alb-ingress-controller/kubernetes/
Mozilla Public License 2.0
57 stars 66 forks source link

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

Open pedrodparkes opened 3 years ago

pedrodparkes commented 3 years ago

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

msmith93 commented 3 years ago

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

nerijuskr9 commented 2 years ago

Hi,

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

shilpagupta-axtria commented 1 year ago

Same issue..

reinier-millo commented 1 year ago

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.