How do I force regeneration of a `pulumi_random.Ra...
# general
h
How do I force regeneration of a
pulumi_random.RandomPassword
?
Just call
pulumi state delete
on the URN?
d
there is keepers you are setting
set another keepers to kick of the drift
h
manually, for reasons outside of pulumi's sphere of influence
d
export pulumi state and modily it to make pulumi think previus keepers where different
or delete resource from the state. but it will be depdendnt on how you coded everything. if dependency chain coded correctly then pulumi will recognize that resource are missing and will trigger creation that will force dependent resources to change as well
h
yeah, pulumi's dependencies system prevents me from just simply deleting it
d
then do: •
pulumi state export > out.josn
• change keepers in that large json •
pulumi stack import --file out.json
this will make pulumi thing it need to recreate that resource.
h
ok
thanks i hate it, but the only other option appears to be editing the keepers in the code and regenerating every similar password
d
yeah.
h
I've settled on
keepers={'regenerate':False}
in the code and touching that in the state when i need to redo this
d
There you go