Awesome
Terraform Live Graph Extension for VSCode
The Terraform Graph Extension for Visual Studio Code is a plugin that allows you to generate a live Terraform graph as you code. This extension makes it easy to visualize your infrastructure and the relationships between resources, helping you to understand how your infrastructure is configured.
Installation
Prerequisites
- Install
terraform
from: https://developer.hashicorp.com/terraform/downloads?product_intent=terraform - Install
graphviz
from: https://graphviz.org/download/ - VS Code updated to at least
v1.75.1
of above.
Extension Installation
- Open Visual Studio Code.
- Click on the Extensions icon on the left-hand side of the screen (Ctrl+Shift+X).
- Search for "Terraform Live Graph" and click "Install".
- Restart Visual Studio Code.
Usage
- Open a Terraform file in Visual Studio Code
- Activate the extension by selecting "Terraform Graph View" from the Command Palette (
CMD+Shift+p
/Ctrl+Shift+p
orF1
opens the Command Palette). - A live graph of your Terraform code will appear on the right-hand side of the screen
- As you write your Terraform code, the graph will update in real-time to reflect your changes
Requirements
- Terraform must be installed on your system and accessible from the command line (Download)
- The Terraform files must be in a valid format
Issues and Contributions
If you encounter any issues or have any suggestions for improvements, please open an issue on the GitHub repository.
If you would like to contribute to the development of this extension, please follow the instructions here.
License
This extension is licensed under the MIT License. See the LICENSE file for more information.