I want to manage k8s clusters with terraform. I have a yaml file where I define the clusters in a yaml list. That works when I create clusters, but when I remove a clustter definition from the yaml file terraform fails on destroying the respective cluster due to missing values.
I want the yaml file represent my k8s infrastructure. And I want each cluster to be created in a separate Terraform cloud workspace, hence have a separate Terraform state file.
I want to do that with GitHub actions, but any advice is helpful.