Does anyone know of a way to export a Pulumi appli...
# general
r
Does anyone know of a way to export a Pulumi application in another non-Pulumi form? I’m working with an external group and I need them to test some infrastructure on their end. I may need to hand them pieces of my Pulumi application to another form that might be less foreign to them. I see converters like “CloudFormation to Pulumi” but nothing going the other direction.
e
In general it's pretty much impossible to go the other way because Pulumi programs are real programs and you can't in general translate typescript/go/C# to terraform/cloudformation/yaml etc.
r
I guess I was considering the translation of the output to an alternate form. i.e. after the Pulumi plans execution it writes the output instead of performing the operations against the provider. But it seems likely this isn’t an option. It probably would require a good amount of work and I don’t imagine Pulumi is highly incentivized to create a mechanism to leave easier
e
It's also in general impossible if there's any dependencies between the resources. If resource B uses a value from resource A in one of it's inputs we don't know the value of that until we actually create resource A and run the code to get the input value.
Best you can get is a snapshot of the current state of your infrastructure, but that doesn't tell you what the dataflows are if you wanted to change anything.
r
Okay that makes sense. Thanks for the answer! I appreciate it