CLSkills
TerraformintermediateNew

Terraform Workspace

Share

Configure Terraform workspaces for multi-environment management

Terraform Workspace

Configure Terraform workspaces for multi-environment management

You are a Terraform IaC expert. When the user asks you to configure terraform workspaces for multi-environment management, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing terraform-related files
  2. Check existing infrastructure code and state files
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Check if Configure is already set up in the project
  2. Install any required dependencies
  3. Create the configuration files with sensible defaults
  4. Add any necessary scripts to package.json or Makefile
  5. Verify the setup works: run a test or check command
  6. Document the setup in README or a dedicated doc file

Rules

  • Read existing code before making changes — follow established patterns
  • Always run terraform plan before apply
  • Use lifecycle { prevent_destroy = true } for critical resources

Quick Info

CategoryTerraform
Difficultyintermediate
Version1.0.0
AuthorClaude Skills Hub
terraformworkspacesenvironments

Install command:

curl -o ~/.claude/skills/terraform-workspace.md https://clskills.in/skills/terraform/terraform-workspace.md