All Projects → rohinivsenthil → terrastate

rohinivsenthil / terrastate

Licence: MIT license
Visual Studio Code extension to monitor/deploy/destroy Terraform resources in workspace

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to terrastate

terraform-github-actions-demo
HashiCorp Terraform Github Actions Demo for Github Satellite 2020.
Stars: ✭ 40 (-42.86%)
Mutual labels:  hashicorp
Smile-Theme
完整的 VSCode 主题,包括图标与界面配色
Stars: ✭ 20 (-71.43%)
Mutual labels:  vscode-extension
vscode-settings
vscode(Visual Studio Code) 相关设置、使用技巧等整理
Stars: ✭ 16 (-77.14%)
Mutual labels:  vscode-extension
vscode-pin-up
A VSCode extension allows you to pin up some frequently used files so that you can access them later with more convenience.
Stars: ✭ 45 (-35.71%)
Mutual labels:  vscode-extension
vault-unseal
auto-unseal utility for Hashicorp Vault
Stars: ✭ 57 (-18.57%)
Mutual labels:  hashicorp
vscode-blockman
VSCode extension to highlight nested code blocks
Stars: ✭ 233 (+232.86%)
Mutual labels:  vscode-extension
vscode-live2d
一个简单的VSCode看板娘插件,会跟随你的鼠标动作变化,写代码累了可以逗逗她哦
Stars: ✭ 87 (+24.29%)
Mutual labels:  vscode-extension
vscode-qiita
🔍 Smart Qiita integration for Visual Studio Code
Stars: ✭ 31 (-55.71%)
Mutual labels:  vscode-extension
vs-code-bpmn-io
Edit BPMN 2.0 files. Based on bpmn.io tools.
Stars: ✭ 87 (+24.29%)
Mutual labels:  vscode-extension
vscode-commit-message-editor
Edit commit messages in a convenient way.
Stars: ✭ 40 (-42.86%)
Mutual labels:  vscode-extension
vscode-ledger
Visual Studio Code support for Ledger files
Stars: ✭ 18 (-74.29%)
Mutual labels:  vscode-extension
vscode-bracket-select
A vscode plugin for select text between brackets
Stars: ✭ 19 (-72.86%)
Mutual labels:  vscode-extension
Wikitext-VSCode-Extension
A Visual Studio Code Extension that provides language support for Wikitext.
Stars: ✭ 50 (-28.57%)
Mutual labels:  vscode-extension
vscode-checkstyle
Haxe Checkstyle extension for Visual Studio Code
Stars: ✭ 24 (-65.71%)
Mutual labels:  vscode-extension
iridium
💎 Growing collection of VS Code extensions with a fancy name
Stars: ✭ 39 (-44.29%)
Mutual labels:  vscode-extension
serverless-vscode
Serverless framework integration for VSCode
Stars: ✭ 26 (-62.86%)
Mutual labels:  vscode-extension
azure-devops-terraform
Recipe to deploy Azure Infrastructure with Terraform via Azure DevOps
Stars: ✭ 18 (-74.29%)
Mutual labels:  hashicorp
vscode-Nyan-Cat
Nyan Cat for VSCode!
Stars: ✭ 37 (-47.14%)
Mutual labels:  vscode-extension
vscode-stylelint-plus
A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint, support auto fix on save.
Stars: ✭ 32 (-54.29%)
Mutual labels:  vscode-extension
vscode-ron
Rust Object Notation (RON) vscode extension
Stars: ✭ 31 (-55.71%)
Mutual labels:  vscode-extension

Terrastate

Monitor the state of your Terraform resources


Terrastate is a Visual Studio Code extension that can be used to monitor, deploy and destroy Terraform resources. You can find the extension here.


Release: 1.0.0

Highlighted Features

  • Minimalist UI/UX to show the state of Terraform resources
  • Supports Terraform commands on single click
  • Shows directory level Terraform graph

Quick start

Step 1. Install the Terrastate extension for Visual Studio Code
Step 2. Click on the Terrastate icon in the side panel
Step 3. The terraform resources defined in the workspace will be listed in the right-side tree view

Supported Commands

To view the list of commands, left-click on the directory/resource in the Terrastate View.

Directory Level

Command Description
Apply All Runs terraform apply on directory level
Destory All Runs terraform destroy on directory level
Initialize Runs terraform init on the directory
Refresh Runs terraform refresh on the directory
Validate Runs terraform validate on the directory

Resource Level

Command Description
Apply Runs terraform apply targeted on the resource
Destory Runs terraform destroy targeted on the resource
Taint Runs terraform taint targeted on the resource
Untaint Runs terraform untaint targeted on the resource

Issues, feature requests, and contributions

Issues

  • If you come across a problem with the extension, please file an issue
  • For list of known issues, please check the issues tab

Feature requests

  • Find planned features for future releases marked as feature under issues tab.
  • For new feature requests, please file an issue

Contributions

Contributions are always welcome!

Running the extension locally for development

  1. Clone the repository and install dependencies by running yarn install
  2. Press F5 to open a new window with your extension loaded.
  3. Run your command from the command palette by pressing (Ctrl+Shift+P or Cmd+Shift+P on Mac) and typing Terrastate: Focus on Terrastate View. Alternatively, you can also find the Terrastate icon on the side panel.

Folder structure

  • package.json: this is the manifest file in which you declare your extension and command.
  • src/extension.ts: this is the main file where you will provide the implementation of your command. The file exports one function, activate, inside which we call registerCommand. We pass the function containing the implementation of the command as the second parameter to registerCommand.
  • src/terraform.ts: this is the file containing function definitions pertaining to Terraform.
  • src/terraformProvider.ts and src/graphProvider.ts: these are the files where you will define the Terrastate and Graph tree views respectively.

Making changes

  • You can relaunch the extension from the debug toolbar after changing code in src.
  • You can also reload (Ctrl+R or Cmd+R on Mac) the VS Code window with your extension to load your changes.

Related

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].