If we wanted to switch the runtime language in a p...
# general
g
If we wanted to switch the runtime language in a pulumi project, would we port the code and then change the
runtime
in the
Pulumi.yaml
file? Assuming the code is ported correctly, the stack state shouldn't change, is that right? We're using Pulumi's managed state store.
b
yes, this is possible. Although there are probably easier ways to achieve what you want to do: • create a brand new project and import the resources, then
pulumi state delete
the old resources from the original project • leave the existing project in place and use
.get
methods
g
Thanks! Can you elaborate a bit on that second option? By
.get
methods are you referring to the methods used to look up existing resources? So leaving the old project intact, we create a new project in new runtime of choice, and lookup the existing resources as needed?