https://pulumi.com logo
Title
r

rich-motorcycle-3089

05/04/2023, 3:37 PM
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

echoing-dinner-19531

05/04/2023, 7:23 PM
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

rich-motorcycle-3089

05/04/2023, 7:26 PM
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

echoing-dinner-19531

05/04/2023, 7:28 PM
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

rich-motorcycle-3089

05/04/2023, 7:30 PM
Okay that makes sense. Thanks for the answer! I appreciate it