Replies: 1 comment 3 replies
-
|
@mloskot thanks for opening this discussion! Regarding the first topic: it reads like the Regarding the second topic: yes, this input/output schema flexibility is like that by design. I am very curious to explore your idea regarding transitioning from tf/Tofu. We have not enabled JSON/YAML output schema on extract, since we consider extract an intermediate step - people extract resources as code, modify them to their liking and apply them back. Or update their own code from the reality, and then do a full reconcile. Since we aren't supporting JSON or YAML as input schemas either (yet), the only available option in extract right now is Pkl. I can tell you that I know some community members already experiment with tasking Copilots / AI agents to translate our Pkl into something else. Pkl, especially flat Pkl the extract command generates, is totally simple for an LLM to digest / learn on the spot. And proper LLMs have tons of knowledge about tf and its AWS provider. So transitioning form our Pkl to HCL for AWS only using LLM could be a relatively straightforward path. Maybe worth exploring for you? Another option would be to look at the machine output of the inventory command. This one would give you some "raw" JSON and YAML that doesn't have the requirement to be re-applicable into formae, it's rather thought to output what will be processed by other tools. Maybe this is enough for that use case? I am still thinking it will need a strong middle man to translate from our inventory output into HCL, which brings us back to those LLMs.. Let us know if we are thinking in the right direction here, happy to continue the discussion! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The website says:
First, I've failed to find out in the documentation how I can trigger any transformation and output declarative code from the IaC in PKL. Is it possible to output the declarative code, code that simply shows desired state?
Second, it it looks like formae could quite easily, with using plugins, output IaC in other languages like JSON, HCL or even Bicep.
IMHO, it would be a significant selling point especially for users considering transition from Terraform/OpenTofu to formae.
Then, users could
terraform planusing code generate by formae as a part of evaluation and double-check if their formae project is equivalent, what changes and actions to expect, etc.Beta Was this translation helpful? Give feedback.
All reactions