terraform

Design and manage Terraform infrastructure as code with remote state and safety patterns.

110|14|Updated May 12, 2026
One-click install
npx skills add https://github.com/EliasOulkadi/shokunin --skill terraform-eliasoulkadi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform
Source: https://github.com/EliasOulkadi/shokunin/tree/main/.pack/skills/terraform
Command: npx skills add https://github.com/EliasOulkadi/shokunin --skill terraform-eliasoulkadi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves the problem of designing, refactoring, and operating infrastructure as code without breaking state, risking replacements, or losing production safety.

Core Features & Use Cases

  • Remote state design (S3 + DynamoDB locking): Prevents drift and concurrent apply conflicts for team and production use.
  • Production-grade refactoring (moved/removed blocks): Enables safe renames and module migrations without relying on manual state surgery.
  • Stacks-ready IaC workflow + testing: Uses Terraform Stacks (where applicable) and the Terraform test framework to validate changes before apply.
  • CI plan/apply separation + emergency state tools: Establishes safe rollout patterns and provides state surgery commands for recovery.
  • Guardrails via preconditions/postconditions and checklists: Adds invariants and explicit review criteria to reduce accidental destructive changes.

Quick Start

Ask the AI to generate a Terraform module and an S3+DynamoDB remote backend that uses moved/removed blocks plus a CI plan-only + apply-from-main workflow for an environment directory layout.

Frequently Asked Questions about terraform

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

FAQPage Schema
How do I set up Terraform remote state with S3 and DynamoDB locking?

Terraform remote state with S3 and DynamoDB locking prevents drift and concurrent apply conflicts for team and production use. It configures an S3 backend for state storage and a DynamoDB table to acquire locks during operations.

How do I safely refactor Terraform resources without state surgery?

Terraform moved and removed blocks enable safe renames and module migrations without relying on manual state surgery. You declare transitions in configuration, allowing Terraform to preserve existing state automatically during the next apply.

What is the best way to structure a Terraform CI plan and apply workflow?

The best way to structure a Terraform CI workflow is separating plan and apply stages. It establishes safe rollout patterns by running plan-only checks on pull requests and executing apply-from-main after review and merge.

When should I use Terraform Stacks and the test framework?

Terraform Stacks and the test framework should be used to validate infrastructure changes before apply in production. They support orchestrating multi-environment deployments and testing configuration behavior to ensure safety.

Does this Terraform workflow support version pinning and production change guardrails?

This Terraform workflow supports version pinning and production change guardrails by enforcing safety rules. It uses preconditions, postconditions, and explicit review checklists to reduce accidental destructive changes.