terraform-operations

Execute local Terraform operations with ServiceNow change request gating.

650|182|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/automateyournetwork/netclaw --skill terraform-operations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-operations
Source: https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/terraform-operations
Command: npx skills add https://github.com/automateyournetwork/netclaw --skill terraform-operations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Running Terraform apply or destroy without change control creates audit and compliance gaps. This Skill enforces ServiceNow Change Request approval before destructive infrastructure operations while exposing the full local Terraform workflow.

Core Features & Use Cases

  • Full Terraform Lifecycle: Run init, validate, fmt, plan, apply, destroy, output, state list, and import operations against local working directories.
  • Change Control Enforcement: terraform_apply and terraform_destroy are blocked until an approved ServiceNow CR reaches the Implement state.
  • Use Case: A network engineer generates a Terraform plan for a production VPC change, attaches it to a ServiceNow CR, and only after approval executes the apply through the same workflow.

Quick Start

Run terraform plan in the production network directory and show me the proposed changes.

Frequently Asked Questions about terraform-operations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run terraform plan with change control?

Invoke terraform_plan against the target working directory to generate an execution plan. Plan, validate, fmt, and output run freely; only apply and destroy require an approved ServiceNow Change Request in Implement state.

How do I apply Terraform changes with ServiceNow approval?

First create and get a ServiceNow Change Request approved into the Implement state, then run terraform_apply. The operation checks the CR state before executing and refuses to proceed without approval.

Can I import existing infrastructure into Terraform state?

Yes, terraform_import brings existing infrastructure under Terraform management. Use terraform_state_list afterward to verify which resources are tracked in the state file.

Why does terraform apply fail even with valid configuration?

Apply fails when no approved ServiceNow CR exists in Implement state, even if the configuration validates. Confirm the CR status and that provider credentials are present in the environment before retrying.

What prerequisites does local Terraform execution need?

You need the Terraform CLI installed locally, provider credentials available as environment variables, and the terraform-mcp server with the Operations toolset enabled. Apply and destroy additionally require an approved ServiceNow CR.