This message was deleted.
# aws
s
This message was deleted.
r
We can do this manually currently, by removing the code and manually deleting the resources from the stack,
Just to make sure I’m understanding correctly, you do this by deleting the relevant resources from the state file and reimporting? Or
pulumi state delete
?
m
we don't re-import, we just leave them out of the state file because we don't want them tracked by pulumi anymore.
which is what I'm hoping the
"unimport"
feature might do, basically remove it from the stack but not AWS
We don't have a need to manage service-linked roles, so we're trying to remove them from IAC to reduce clutter basically
r
we don’t re-import
Right I meant re-import the state file, not the resource.
But yeah, there is no
unimport
feature. I think there is an open issue for the functionality you’re describing though, but I can’t think of it off the top of my head.
s
are you sure? I think
pulumi state delete
does exactly this - removes a resource from Pulumi state without touching it in the cloud.
r
Heh, you’re right @steep-toddler-94095 - I would think that meets the need but it does still require you to remove the code from your program 🤷🏽
m
ok great! @steep-toddler-94095 /@red-match-15116 thank you both!