Hey, so I have another custom-provider related que...
# general
e
Hey, so I have another custom-provider related question. I'm saving my API token in the provider config. Trouble is, the provider gets recreated along with all it's resources when I need to update that token. From what I've gathered from this issue it seems I need to "implement DiffConfig", but I'm unsure on how to do that. I see no mentions of DiffConfig in the documentation, nor in example or even real world providers.
And if you need to make a change once and not cause a global replacement, the pattern is: • Create a 2nd provider with the new config and
pulumi up
it. • Export the stack state (and back it up). • Search and replace all uses of the old provider URN with the new provider URN. • Import the stack state.
e
yup, that one 🙂 . Might be useful to add some extra documentation for those on https://www.pulumi.com/docs/iac/build-with-pulumi/build-a-provider/
👍 1