Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Terraline Pre-RCANew to Visual Studio Code? Get it now.
Terraline Pre-RCA

Terraline Pre-RCA

CielaraAI

|
1 install
| (0) | Free
Automated Terraform security analysis and RCA workflow integration with Cielara platform
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Terraline Pre-RCA Extension

A VS Code extension for automated Terraform security analysis and root cause analysis (RCA) workflow integration with the Cielara platform.

First Time Setup Instructions

  1. Open the terraline-issue folder as a project in VSCode
  2. npm install
  3. npm run compile
  4. Open the ./src/extension.ts file, and From VSCode Menu, select Run --> Start Debugging
  5. New Window with title Extension Development Host (call it Host Editor) will open up, in that window, browse to the terraform project.
  6. PreReqs to run before 5.1:
    • On the core repo, run the backend using make docker-rebuild or the make docker-dbs + make docker-hot-reload
    • Perform the scan cmd on the core
    • On the insights-agent repo, build and run the container:
      • build: docker build -t insights-agent .
      • run: docker run --rm -p 8088:8088 --name insights-agent --env-file .env insights-agent:latest 5.1. In the terraform project, open and keep the main.tf file in the Host editor, and Open Command Palette, and Run the Cielara PreRCA cmd.

Features

  • Automated File Upload: Automatically discovers and uploads .tf and .env files from your workspace
  • Terraform Workflow Automation: Executes terraform init, validate, and plan operations
  • Impact Simulation: Generates base64-encoded terraform plans and submits them to the SAIMON API for impact analysis
  • Integrated Authentication: Handles IAM authentication and JWT token management
  • Real-time Feedback: Displays progress and results in VS Code notifications

Commands

  • Cielara Pre RCA: Executes the complete pre-RCA workflow including file upload, terraform operations, and impact simulation

Requirements

  • Terraform CLI installed and available in PATH
  • PowerShell (Windows)
  • Access to the Cielara API endpoints
  • Valid authentication credentials configured in the extension

Usage

  1. Open a workspace containing Terraform files (.tf)
  2. Open the Command Palette (Ctrl+Shift+P)
  3. Run the command: "Cielara Pre RCA"
  4. The extension will automatically upload your terraform files and execute the analysis workflow

Development

Building from Source

  1. Install vsce (VS Code Extension Manager)

    npm install -g @vscode/vsce
    
  2. Install dependencies

    npm install
    
  3. Build the package

    vsce package
    

    This will create a .vsix file (e.g., terraline-issue-0.0.1.vsix)

  4. Install the extension

    code --install-extension terraline-issue-0.0.1.vsix
    

    Or install through VS Code UI:

    • Open VS Code
    • Go to Extensions view (Ctrl+Shift+X)
    • Click "..." menu → "Install from VSIX..."
    • Select the .vsix file

Development Mode

To run the extension in development mode:

  1. Open this folder in VS Code
  2. Press F5 to launch the Extension Development Host
  3. Test your changes in the new VS Code window

TODO

  • [x] .vscode/launch.json and .vscode/tasks.json already configured for VS Code development
  • [ ] Add repository field to package.json
  • [ ] Add LICENSE file
  • [ ] Consider bundling extension to reduce file count and improve performance
  • [ ] Add publisher field to package.json for marketplace publishing

Release Notes

0.0.1

Initial development release

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft