With this beta functionality in Lucidchart you can convert a Lucidchart diagram built using the AWS shapes shape library into Terraform code.
Diagram to code is available for accounts with the Cloud Accelerator. Contact sales to purchase the Cloud Accelerator for your Enterprise account.
Diagram to Terraform
This beta functionality allows you to generate Terraform code from a Lucidchart diagram. To do so, follow these steps:
- From a Lucidchart document, enable an AWS shape library.
- For instructions, refer to our Shape libraries in Lucidchart article.
- Add AWS shapes to the canvas.
- Use lines to connect and represent relationships between AWS shapes.
- Add AWS containers and place AWS shapes inside to represent containment relationships.
- From the Primary Toolbar, select the
Terraform export icon.
- Click Generate.
- If there are any issues with the generated code, you will see a warning pop-up.
- Click Resolve and follow the prompts to resolve the issue.
- Optionally, you can use the Contextual Panel on the right side of the canvas to add custom data to your shapes.
- To learn more, refer to the Link data to a Lucidchart document article.
- Click
the copy to clipboard icon or select Download .tf file at the bottom of the Terraform export menu.
Give feedback on this article
Have feedback about this article? Tell us about your experience here.