I've got my stack into a state I can't seem to recover from by deleting a service manually. Pulumi wants to remove an IamPolicy for the missing service. Refresh completes but does not resolve the problem. Destroy or Up error out trying to delete the IamPolicy for the missing service--that fails, saying the service doesn't exist.
l
little-apartment-30401
06/09/2022, 12:48 PM
Sounds like you might need to do a
pulumi state delete
?
Not 100% sure if that’ll fix it completely, you may have to delete the IAM policy manually as well?
q
quick-wolf-8403
06/09/2022, 12:52 PM
Thanks, I wasn't aware of
pulumi state delete
I'll check on that.
Maybe that'll be more successful than my attempts to edit the state file by hand.
l
little-apartment-30401
06/09/2022, 12:55 PM
haha yeah, I’ve gone down that path before too, always ends in tears.