The Scalr VSCode Extension is a tool designed to streamline your Opentofu/Terraform workflows by integrating Scalr directly into your Visual Studio Code environment.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
The Scalr VSCode Extension is a tool designed to streamline your Opentofu/Terraform workflows by integrating Scalr directly into your Visual Studio Code environment. This extension allows you to manage workspaces, monitor runs, and access critical information about your infrastructure—without leaving your code editor.
Disclaimer: Early Stages
Please Note: This extension is currently in its early stages of development. While it includes core functionalities, you may encounter bugs or incomplete features. We welcome your feedback and contributions to help improve and stabilize the extension.
Features
Workspace Management: View a comprehensive list of available workspaces for logged-in users.
Run Overview: Access a list of all runs, with the ability to filter runs specific to a workspace.
Run triggering: Preview, Apply, or Destroy infrastructure in the selected workspace and review changes right in the VSCode.
Detailed Information: Get quick access to general information about any workspace or run.
Plan/Apply Output: Read the output from Terraform plan and apply operations directly within VSCode.
Scalr UI Integration: Convenient links provide quick navigation to the corresponding sections of the Scalr web UI.
Installation
From the VSCode Marketplace
Open Visual Studio Code.
Navigate to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
Search for Scalr in the search box.
Click Install to install the extension.
Building Locally
If you want to install dependencies and build the extension locally, follow these steps:
Prerequisites
Node.js: Ensure you have Node.js installed. You can download it from nodejs.org.
npm: Make sure you have npm (comes with Node.js).
Steps to Build Locally
Clone the Repository:
git clone https://github.com/{your-username}/scalr-vscode.git
cd scalr-vscode
Install Dependencies:
npm install
Run the Extension:
Open the project folder in Visual Studio Code.
Press F5 to open a new VSCode window with your extension loaded.
Usage
Login: After installing, you can log in to your Scalr account through the extension.
View Workspaces: Click on the Scalr icon in the sidebar to view your available workspaces.
Run Management: Select a workspace to see all associated runs or access the list of all runs.
Access Details: Click on a workspace or run to view detailed information, including metadata and status.
Plan/Apply Output: Select a run to view the output from Terraform plan and apply operations.
UI Links: Use the provided links to navigate quickly to the Scalr UI for deeper management tasks.
Contributing
Contributions are welcome! Please follow these steps to contribute:
Fork the repository.
Create a new branch (git checkout -b feature-branch-name).
Make your changes.
Commit your changes (git commit -am 'Add new feature').
Push to the branch (git push origin feature-branch-name).
Open a pull request in the scalr-vscode repository.
License
This project is licensed under the MPL-2.0 License. See the LICENSE file for details.
Support
For any issues or feature requests, please open an issue on our GitHub Issues page.