https://pulumi.com logo
Title
l

lemon-monkey-228

05/25/2021, 7:47 AM
I’ve read https://gist.github.com/clstokes/62d8ff84ada8cd414a88d4f1030f5ddc on resource adoption but it seems counter-intuitive for me to change my stack to look up the resources, then revert it
k

kind-mechanic-53546

05/25/2021, 7:49 AM
I think the other option is to import resources via
pulumi import
https://www.pulumi.com/docs/guides/adopting/import/
This would have to be done for each resource
l

lemon-monkey-228

05/25/2021, 7:51 AM
hmm
Feels like it would make sense for Pulumi to add some annotations to resources so that re-importing is easier
or generally reconciling the state
k

kind-mechanic-53546

05/25/2021, 7:53 AM
Theoretically, that's what refresh should be for
so if there are resources marked as removed from pulumi but still in the cloud....
it's a bug?
l

lemon-monkey-228

05/25/2021, 7:54 AM
Refresh should make the state reflect the actual state, right?
k

kind-mechanic-53546

05/25/2021, 7:54 AM
I think so
certainly by my reading
l

lemon-monkey-228

05/25/2021, 7:56 AM
Hm, I wonder if it’s because I changed the
provider
k

kind-mechanic-53546

05/25/2021, 7:57 AM
that could present a problem, different cluster?
l

lemon-monkey-228

05/25/2021, 7:57 AM
Same cluster, but I moved from explicit named provider to the default provider
configured by
config set kubernetes:…
It’s probably because I’ve done too much at once
I might have a play around and test some of the failure scenarios, manually change state, etc.
k

kind-mechanic-53546

05/25/2021, 7:58 AM
quite possibly, unfortunately, pulumi is still a relatively immature product and definitely has some rough edges
l

lemon-monkey-228

05/25/2021, 7:58 AM
I’m using Pulumi mostly for services where I could just recreate them without issue at the moment, but I want to be confident enough to use it for our prod systems
yeah
k

kind-mechanic-53546

05/25/2021, 7:59 AM
but it's oh so productive 🤗
l

lemon-monkey-228

05/25/2021, 7:59 AM
It’s a dream compared to the nightmare that is Helm
And the fact I can still use helm charts and provide them typed values 🤯
k

kind-mechanic-53546

05/25/2021, 8:00 AM
oh yeah, it really is a superpower 😄