terraform-engineer
O que ela faz
Ele orienta a IA na escrita de código de infraestrutura reutilizável, no gerenciamento do seu estado e na revisão de planos antes de mudanças. É para engenheiros que gerenciam configurações de nuvem.
Quando usar
- ✓Quando você quer módulos Terraform escritos para AWS, Azure ou Google Cloud.
- ✓Quando precisa mover o estado do Terraform para um backend remoto ou importar recursos existentes.
- ✓Quando quer revisar um plano do Terraform antes que ele altere a infraestrutura em produção.
Link da skill
https://github.com/Jeffallan/claude-skills/blob/main/skills/terraform-engineer/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode escrever código Terraform para um bucket de armazenamento seguro na AWS e me mostrar o plano?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA escreve o código, roda verificações de formatação e validação, resume o plano e espera a sua aprovação explícita antes de aplicar qualquer coisa.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Terraform Engineer
Senior Terraform engineer specializing in infrastructure as code across AWS, Azure, and GCP with expertise in modular design, state management, and production-grade patterns.
Core Workflow
- Analyze infrastructure — Review requirements, existing code, cloud platforms
- Design modules — Create composable, validated modules with clear interfaces
- Implement state — Configure remote backends with locking and encryption
- Secure infrastructure — Apply security policies, least privilege, encryption
- Validate — Run
terraform fmtandterraform validate, thentflint; if any errors are reported, fix them and re-run until all checks pass cleanly before proceeding - Plan and review — Run
terraform plan -out=tfplanand extract a summarized plan highlighting creates, updates, deletes, and especially any destructive actions (recreations or deletions); if the plan fails, see error recovery below - Approve and apply — Present the plan summary to the user and ask for explicit approval. Only execute
terraform apply tfplanafter receiving confirmation. Refuse to apply the plan if approval is withheld, or if destructive changes are present and the user has not explicitly accepted them
Error Recovery
Validation failures (step 5): Fix reported errors → re-run terraform validate → repeat until clean. For tflint warnings, address rule violations before proceeding.
Plan failures (step 6):
- State drift — Run
terraform refreshto reconcile state with real resources, or useterraform state rm/terraform importto realign specific resources, then re-plan. - Provider auth errors — Verify credentials, environment variables, and provider configuration blocks; re-run
terraform initif provider plugins are stale, then re-plan. - Dependency / ordering errors — Add explicit
depends_onreferences or restructure module outputs to resolve unknown values, then re-plan.
After any fix, return to step 5 to re-validate before re-running the plan.
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Modules | references/module-patterns.md |
Creating modules, inputs/outputs, versioning |
| State | references/state-management.md |
Remote backends, locking, workspaces, migrations |
| Providers | references/providers.md |
AWS/Azure/GCP configuration, authentication |
| Testing | references/testing.md |
terraform plan, terratest, policy as code |
| Best Practices | references/best-practices.md |
DRY patterns, naming, security, cost tracking |
Constraints
MUST DO
- Use semantic versioning and pin provider versions
- Enable remote state with locking and encryption
- Validate inputs with validation blocks
- Use consistent naming conventions and tag all resources
- Document module interfaces
- Run
terraform fmtandterraform validate
MUST NOT DO
- Store secrets in plain text or hardcode environment-specific values
- Use local state for production or skip state locking
- Mix provider versions without constraints
- Create circular module dependencies or skip input validation
- Commit
.terraformdirectories
Code Examples
Minimal Module Structure
main.tf
resource "aws_s3_bucket" "this" {
bucket = var.bucket_name
tags = var.tags
}
variables.tf
variable "bucket_name" {
description = "Name of the S3 bucket"
type = string
validation {
condition = length(var.bucket_name) > 3
error_message = "bucket_name must be longer than 3 characters."
}
}
variable "tags" {
description = "Tags to apply to all resources"
type = map(string)
default = {}
}
outputs.tf
output "bucket_id" {
description = "ID of the created S3 bucket"
value = aws_s3_bucket.this.id
}
Remote Backend Configuration (S3 + DynamoDB)
terraform {
backend "s3" {
bucket = "my-tf-state"
key = "env/prod/terraform.tfstate"
region = "us-east-1"
encrypt = true
dynamodb_table = "terraform-lock"
}
}
Provider Version Pinning
terraform {
required_version = ">= 1.5.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.0"
}
}
}
Output Format
When implementing Terraform soluti
Perguntas frequentes
Ele aplica mudanças sem perguntar?
Não. A skill diz para mostrar o resumo do plano e esperar a sua aprovação explícita antes de rodar o apply.
Quais nuvens ele cobre?
Cobre AWS, Azure e GCP.
Quais verificações ele roda antes do plano?
Roda terraform fmt, terraform validate e tflint e corrige os erros que eles apontam.
Detalhes
Descrição original do autor
Use when implementing infrastructure as code with Terraform across AWS, Azure, or GCP. Invoke for module development (create reusable modules, manage module versioning), state management (migrate backends, import existing resources, resolve state conflicts), provider configuration, multi-environment workflows, and infrastructure testing.
repo: Jeffallan/claude-skills
Popularidade
- Estrelas no GitHub
- 12 mil
- Posição no ranking
- #11463
- Licença
- MIT
- Atualizada em
- 30/10/2026
Comentários
- …
Mais skills deste repositório
angular-architect
12 milAjuda seu agente a criar apps Angular 17 ou mais novos, com componentes standalone, rotas com carregamento sob demanda, estado NgRx, padrões RxJS e ajuste de desempenho.
api-designer
12 milAjuda seu agente a projetar APIs REST ou GraphQL e a escrever especificações OpenAPI 3.1, com regras para recursos, paginação, formatos de erro e versionamento.
architecture-designer
12 milAjuda seu agente a projetar a arquitetura de sistemas, comparar padrões e tecnologias e escrever Architecture Decision Records que explicam cada escolha.
atlassian-mcp
12 milAjuda seu agente a buscar e atualizar issues do Jira e páginas do Confluence pelo MCP, incluindo consultas JQL e CQL, sprints e sincronização de documentação.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.