02/15/2019, 12:06 AM
I deleted something manually in AWS. Pulumi up expectedly shows
Copy code
-   └─ aws:iam:Role                  demo-lambda-role             delete
The deletion fails, so I try to change the state.
pulumi state delete demo-lambda-role
— I get
Copy code
warning: This command will edit your stack's state directly. Confirm? Yes
error: No such resource "demo-lambda-role" exists in the current state
should I not be passing in the resource name? what should I pass in?
turns out this was because I hadn’t deleted necessary resources attached that I’d done manually - my bad — still seems weird that the state says it doesn’t exist though