magnificent-helicopter-3467
07/08/2022, 1:42 AMpulumi refresh
, I get the following error for these k8s resources:
failed to read resource state due to unreachable cluster. If the cluster has been deleted, you can edit the pulumi state to remove this resource
So I get the URN by executing pulumi stack --show-urns
. But when I copy the URN for the k8s resource in to pulumi state delete <urn>
, I see the error: No such resource "<urn>" exists in the current state
Is there a way to sync state so I can reliably do pulumi destroy/up
again with the correct assumptions about current state of cloud infra?billowy-army-68599
07/08/2022, 1:44 AMmagnificent-helicopter-3467
07/08/2022, 1:44 AMbillowy-army-68599
07/08/2022, 1:45 AMPULUMI_K8S_DELETE_UNREACHABLE
and then run pulumi refresh
PULUMI_K8S_DELETE_UNREACHABLE=true
magnificent-helicopter-3467
07/08/2022, 1:48 AMpulumi up
executes that it wouldn’t make false assumptions about certain resources being up with a non-empty state.billowy-army-68599
07/08/2022, 1:56 AMmagnificent-helicopter-3467
07/08/2022, 2:00 AMpulumi up
, it’ll still assume the k8s resources are there since they’re in the state.billowy-army-68599
07/08/2022, 2:27 AMpulumi stack export
modify the JSON to remove the resources then pulumi stack import --file
pulumi state delete <urn>
magnificent-helicopter-3467
07/08/2022, 7:39 AM