Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pedrodparkes opened this issue Aug 5, 2021 · 4 comments

Comments

@pedrodparkes
Copy link

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
Copy link

msmith93 commented Oct 4, 2021

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
Copy link

Hi,

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

@shilpagupta-axtria
Copy link

Same issue..

@reinier-millo
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants