terraform-aws

terraform-aws is a skill for Claude Code, Codex from BagelHole/DevOps-Security-Agent-Skills. It costs 31 tokens per session (541 once invoked), scanned A, original, MIT.

Terraform is a tool for describing AWS infrastructure in configuration files so it can be created and changed consistently. This add-on focuses on AWS resources, reusable modules, and infrastructure state.

In plain words
What is it for?
Use it to provision AWS networks, servers, and other resources, organise reusable modules, manage remote state, and run plan-and-apply deployment workflows.
Why use it?
It reduces manual console work and makes infrastructure changes reviewable and repeatable across environments. Previewing changes before applying them helps catch mistakes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to provision AWS networks, servers, and other resources, organise reusable modules, manage remote state, and run plan-and-apply deployment workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bagelhole/devops-security-agent-skills/terraform-aws
About the project

DevOps & Security Agent Skills is a knowledge base of agent-readable skills covering software delivery, cloud infrastructure, security, compliance, AI operations, and incident response. It is for SRE, platform, infrastructure, and security teams using agents to work with systems such as Kubernetes, Terraform, and major cloud platforms. The catalogue provides a selection of the project's skills for agents including Claude Code, Cursor, and Codex.

BagelHole/DevOps-Security-Agent-Skills · 1,229 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add BagelHole/DevOps-Security-Agent-Skills --skill terraform-aws
Clone the repo
git clone --depth 1 https://github.com/BagelHole/DevOps-Security-Agent-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for terraform-aws

README.md
[![agentmods](https://agentmods.dev/badge/skills/bagelhole/devops-security-agent-skills/terraform-aws/github.svg)](https://agentmods.dev/skills/bagelhole/devops-security-agent-skills/terraform-aws)
Your own site
<a href="https://agentmods.dev/skills/bagelhole/devops-security-agent-skills/terraform-aws"><img src="https://agentmods.dev/badge/skills/bagelhole/devops-security-agent-skills/terraform-aws/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for terraform-aws

Your own site · 80×15
<a href="https://agentmods.dev/skills/bagelhole/devops-security-agent-skills/terraform-aws"><img src="https://agentmods.dev/badge/skills/bagelhole/devops-security-agent-skills/terraform-aws.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 541 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00541
Opus 5.5 $0.00012 $0.00216
Sonnet 5.5 $0.00006 $0.00108
Haiku 4.5 $0.00003 $0.00054

Measured 2mo ago against content hash dd3be8e75034, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

terraform-aws scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/tf-init.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

infrastructure/cloud-aws/terraform-aws/SKILL.md · 101 lines

What it actually says

Terraform AWS

Provision and manage AWS infrastructure with Terraform.

Provider Configuration

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.0"
    }
  }
  
  backend "s3" {
    bucket = "terraform-state"
    key    = "prod/terraform.tfstate"
    region = "us-east-1"
  }
}

provider "aws" {
  region = var.region
  
  default_tags {
    tags = {
      Environment = var.environment
      ManagedBy   = "terraform"
    }
  }
}

Example Resources

resource "aws_vpc" "main" {
  cidr_block           = "10.0.0.0/16"
  enable_dns_hostnames = true
  
  tags = { Name = "main-vpc" }
}

resource "aws_instance" "web" {
  ami           = data.aws_ami.amazon_linux.id
  instance_type = "t3.micro"
  subnet_id     = aws_subnet.public.id
  
  tags = { Name = "web-server" }
}

Modules

module "vpc" {
  source = "terraform-aws-modules/vpc/aws"
  
  name = "my-vpc"
  cidr = "10.0.0.0/16"
  
  azs             = ["us-east-1a", "us-east-1b"]
  private_subnets = ["10.0.1.0/24", "10.0.2.0/24"]
  public_subnets  = ["10.0.101.0/24", "10.0.102.0/24"]
  
  enable_nat_gateway = true
}

Commands

terraform init
terraform plan -out=plan.tfplan
terraform apply plan.tfplan
terraform destroy

Best Practices

  • Use remote state with locking
  • Implement module structure
  • Use workspaces or separate states per environment
  • Pin provider versions
  • Use data sources for AMIs
Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 101 lines · 31 tokens per session scan A dd3be8e75034

Subscribe to this mod's changes

terraform-aws is a skill published in the GitHub repository BagelHole/DevOps-Security-Agent-Skills (1,229 stars, last pushed 6mo ago), licensed MIT. It adds 31 tokens to every session and 541 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

terraform-aws compared with skills from other repositories

terraform-aws next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
terraform-awsBagelHole/DevOps-Security-Agent-SkillsSkill1.2k6mo agoMITA31Claude Code, Codex
implementing-aws-config-rules-for-compliancexalgorix/xalgorixSkill1.5kyesterdayApache-2.0A53Claude Code, Codex
implementing-aws-security-hub-compliancexalgorix/xalgorixSkill1.5kyesterdayApache-2.0A53Claude Code, Codex
ec2itsmostafa/aws-agent-skillsSkill1.2k6d agoMITA320Claude Code
ecsitsmostafa/aws-agent-skillsSkill1.2k6d agoMITA35Claude Code
cloudwatchitsmostafa/aws-agent-skillsSkill1.2k6d agoMITA43Claude Code
cloudformationitsmostafa/aws-agent-skillsSkill1.2k6d agoMITA34Claude Code