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

many-spring-73557

08/08/2022, 5:00 PM
How do I remove a resource from pulumi config without triggering a change in AWS? Basically I need to “untrack” a resource. We have an S3 BucketNotification in our pulumi. If I delete it and
pulumi up
, then pulumi will delete that value from AWS. But I need the notification value to stick around, and have pulumi forget it was ever managing it.
b

billowy-army-68599

08/08/2022, 5:07 PM
@many-spring-73557 you can just remove it from the state
pulumi state delete
m

many-spring-73557

08/08/2022, 5:17 PM
ah, awesome, thanks!
e

echoing-dinner-19531

08/09/2022, 7:49 AM
Also there's retain on delete resource option: https://www.pulumi.com/blog/retainondelete/