Cannot stop a serive

0

Hello, I am learning to use terraform and aws. I created a cluster and a installed a flask application with helm. Everything was working fine but then i deleted the eks cluster from the dashboard. Now terraform destroy wont work and i cannot stop the instances that have been created. Every time i stop them they keep coming up again. I just need to stop everything would be grateful for any ideas on how to do that.

已提問 2 年前檢視次數 210 次
2 個答案
0

It seems like you have a drift - your EKS cluster is in Terraform state file, but not actually present. Try to remove it from state by using terraform state rm and make sure there is no difference between state and actual resources. After that you should be able to destroy everything using Terraform

已回答 2 年前
0

I managed to do it and found out about terraform state rm. Thank you for your help!

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南