https://pulumi.com logo
#general
Title
# general
r

rich-whale-93740

08/21/2023, 8:21 PM
If a resource was manually deleted in aws, how to manually delete the resource in the pulumi stack?
b

billowy-army-68599

08/21/2023, 8:22 PM
you’d use
pulumi state delete
to remove it from your pulumi state, or you can just remove the code from your pulumi configuration and run
pulumi up -r
r

rich-whale-93740

08/21/2023, 8:22 PM
Thanks!
pulumi state delete
worked
b

billowy-army-68599

08/21/2023, 8:23 PM
note if it’s still in your code, pulumi will try to recreate it on the next run
r

rich-whale-93740

08/21/2023, 8:23 PM
Yes that's exactly what I want 🙂
2 Views