How to generate an AI Terraforom diagram
Step-by-step guide on generating an Terraform diagram
- Paste Terraform code – either from .tf files (config file) or a .tfstate file (state file) – into the prompt field.
- Generate a diagram with the pasted prompt.
- Edit the diagram with follow-up prompts (this step requires signing in to Eraser).
- Manually adjust the layout using GUI controls (this step requires signing into Eraser).
Tips on generating an Terraform diagram
- If you are using .tf files, you will likely have several .tf files in your project. Copy and paste from each file so that the AI diagram generator is given the full context of the project. Depending on the number of your .tf files, it may be easier to use a script to concatenate all of your files into one.