pulumi / pulumi

Pulumi - Infrastructure as Code in any programming language 🚀
https://www.pulumi.com
Apache License 2.0
21.51k stars 1.1k forks source link

Add convert command to go from stack json to language of choice #17360

Open pierskarsenbarg opened 1 week ago

pierskarsenbarg commented 1 week ago

Hello!

Issue details

Given a stack JSON file created by pulumi stack export, it would be useful to be able to convert that into one of the languages we support.

It would be very useful if you've got an old stack and have "misplaced" the code that you used to create it.

Affected area/feature

Frassle commented 1 week ago

Note that nearly all the code to support this is probably already present from the import command which generates programs based on state.