Terraform Patterns

Terraform infrastructure-as-code agent skill and plugin for Claude Code, Codex, Gemini CLI, Cursor, OpenClaw. Covers module design patterns, state management strategies, provider configuration, security hardening, policy-as-code with Sentinel/OPA, and CI/CD plan/apply workflows. Use when: user wants to design Terraform modules, manage state backends, review Terraform security, implement multi-region deployments, or follow IaC best practices.

Gitix AI
Gitix AI
· 7 days ago · v1
SkillSpector LOW
10/100 ✓ SAFE
1 security finding detected
MEDIUM Rogue Agent · Session Persistence 60% confidence

Match: Write the resource block first (empty body is fine) # main.tf: # resource "aws_s3_bucket" "legacy" {} # 2. Import the resource into state terraform import aws_s3_bucket.legacy my-existing-bucket-name

Line 611

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

### terraform import Workflow

```bash
# 1. Write the resource block first (empty body is fine)
# main.tf:
# resource "aws_s3_bucket" "legacy" {}

Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.

10
0
0
0

Comments (0)

Sign in to leave a comment.

No comments yet. Be the first!