10/17/2022, 9:51 AM
jamess-MBP:pulumi jamesandrews$ pulumi state delete 'urn😛ulumi:dev::infrak8::eks:index:Cluster$aws:eks/cluster:Cluster::ja-cluster-eksCluster' warning: This command will edit your stack's state directly. Confirm? Yes error: This resource can't be safely deleted because the following resources depend on it: * "ja-cluster-eks-k8s" (urn😛ulumi:dev::infrak8::eks:index:Cluster$pulumi😛roviders:kubernetes::ja-cluster-eks-k8s) * "ja-cluster-nodeAccess" (urn😛ulumi:dev::infrak8::eks:index:Cluster$kubernetes:core/v1:ConfigMap::ja-cluster-nodeAccess) Delete those resources first before deleting this one. jamess-MBP:pulumi jamesandrews$ pulumi destroy -t 'urn😛ulumi:dev::infrak8::eks:index:Cluster$pulumi😛roviders:kubernetes::ja-cluster-eks-k8s' -t 'urn😛ulumi:dev::infrak8::eks:index:Cluster$kubernetes:core/v1:ConfigMap::ja-cluster-nodeAccess' Previewing destroy (dev) View Live: Type Name Plan pulumi😛ulumi:Stack infrak8-dev - ├─ kubernetes:core/v1:ConfigMap ja-cluster-nodeAccess delete - └─ pulumi😛roviders:kubernetes ja-cluster-eks-k8s delete Resources: - 2 to delete Do you want to perform this destroy? yes Destroying (dev) View Live: Type Name Status Info pulumi😛ulumi:Stack infrak8-dev failed 1 error - └─ kubernetes:core/v1:ConfigMap ja-cluster-nodeAccess deleting failed 1 error Diagnostics: pulumi😛ulumi:Stack (infrak8-dev): error: update failed kubernetes:core/v1:ConfigMap (ja-cluster-nodeAccess): error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "": dial tcp: lookup on no such host If the cluster has been deleted, you can edit the pulumi state to remove this resource Resources: