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

billions-glass-17089

06/03/2020, 9:08 PM
does pulumi delete the resource on the provider if it was imported? Is there a way one could tell?
g

gentle-diamond-70147

06/03/2020, 9:11 PM
Do you mean you did
import: "abc123"
on a resource to import it into your Pulumi stack - e.g. https://www.pulumi.com/docs/intro/concepts/programming-model/#import? If so, yes, if you then do a
pulumi destroy
or otherwise modify the resource code in your Pulumi app that would delete it or cause it be replaced, Pulumi will delete the original resource.
b

billions-glass-17089

06/03/2020, 9:15 PM
👍 glad I asked, I kind of got around this by running
pulumi state delete
to remove it from the pulumi state
g

gentle-diamond-70147

06/03/2020, 9:39 PM
"import" essentially means "assume ownership of". 🙂