does pulumi delete the resource on the provider if...
# general
b
does pulumi delete the resource on the provider if it was imported? Is there a way one could tell?
g
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
👍 glad I asked, I kind of got around this by running
pulumi state delete
to remove it from the pulumi state
g
"import" essentially means "assume ownership of". 🙂