Any way to easily edit a specific value in state? ...
# general
g
Any way to easily edit a specific value in state? I have a
RandomUuid
value and everything is working correctly except it was in different value when it was applied to specific service and it stored it into it's database during initial startup. I would like to use that value and change it into Pulumi state so that it gets set correctly elsewhere but still keep the
RandomUuid
so that if and when a new env is setup with Pulumi configs it will get generated as it should
I guess I can do
pulumi stack export > state.json
edit that file and then do
cat state.json | pulumi stack import
but I just wonder if there's a direct way for this
b
this is the best way
g
this is the way