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.
echoing-dinner-19531
05/04/2023, 7:29 PM
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
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.