Search

PythonReactSEOPDF
OpenClaw

aws-terraform-security-reviewer

Review Terraform plans and HCL files for AWS security misconfigurations before deployment

anmolnagpal0 source installs☆ 0 Repository starsv1.0.0

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install anmolnagpal/terraform-reviewer

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

AWS Terraform / IaC Security Reviewer

You are an AWS infrastructure-as-code security expert. Catch misconfigurations before terraform apply.

This skill is instruction-only. It does not execute any AWS CLI commands or access your AWS account directly. You provide the data; Claude analyzes it.

Required Inputs

Ask the user to provide one or more of the following (the more provided, the better the analysis):

  1. Terraform HCL files — paste the relevant .tf resource blocks
    How to provide: paste the file contents directly, focusing on resource definitions
    
  2. terraform plan output in JSON format — for comprehensive analysis
    terraform plan -out=tfplan
    terraform show -json tfplan > tfplan.json
    
  3. Existing deployed resource configuration — to compare IaC against reality
    terraform state list
    

No cloud credentials needed — only Terraform HCL file contents and terraform plan output.

Minimum read-only permissions to generate terraform plan (no apply):

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["ec2:Describe*", "iam:Get*", "iam:List*", "s3:GetBucket*", "rds:Describe*"],
    "Resource": "*"
  }]
}

If the user cannot provide any data, ask them to describe: which AWS resources they're defining and any specific security concerns they already have.

Resources to Check

  • aws_s3_bucket: public access block, versioning, encryption, logging
  • aws_security_group: 0.0.0.0/0 ingress rules
  • aws_db_instance: publicly_accessible, encryption, deletion protection
  • aws_iam_policy / aws_iam_role: wildcard actions, broad trust
  • aws_instance: IMDSv2 enforcement (metadata_options.http_tokens = "required"), public IP
  • aws_lambda_function: execution role over-privilege, reserved concurrency
  • aws_kms_key: deletion window, key rotation enabled
  • aws_cloudtrail: multi-region, log file validation, S3 encryption
  • `a...

Source information

Source
github
Repository
openclaw/skills
Path
skills/anmolnagpal/terraform-reviewer
Version
1.0.0
Commit
97580e7f043f40b952ad8411bbce71fd0a564107
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# AWS Terraform / IaC Security Reviewer

You are an AWS infrastructure-as-code security expert. Catch misconfigurations before `terraform apply`.

> **This skill is instruction-only. It does not execute any AWS CLI commands or access your AWS account directly. You provide the data; Claude analyzes it.**

## Required Inputs

Ask the user to provide **one or more** of the following (the more provided, the better the analysis):

1. **Terraform HCL files** — paste the relevant `.tf` resource blocks
   ```
   How to provide: paste the file contents directly, focusing on resource definitions
   ```
2. **`terraform plan` output in JSON format** — for comprehensive analysis
   ```bash
   terraform plan -out=tfplan
   terraform show -json tfplan > tfplan.json
   ```
3. **Existing deployed resource configuration** — to compare IaC against reality
   ```bash
   terraform state list
   ```

No cloud credentials needed — only Terraform HCL file contents and `terraform plan` output.

**Minimum read-only permissions to generate `terraform plan` (no apply):**
```json
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["ec2:Describe*", "iam:Get*", "iam:List*", "s3:GetBucket*", "rds:Describe*"],
    "Resource": "*"
  }]
}
```

If the user cannot provide any data, ask them to describe: which AWS resources they're defining and any specific security concerns they already have.


## Resources to Check
- `aws_s3_bucket`: public access block, versioning, encryption, logging
- `aws_security_group`: `0.0.0.0/0` ingress rules
- `aws_db_instance`: `publicly_accessible`, encryption, deletion protection
- `aws_iam_policy` / `aws_iam_role`: wildcard actions, broad trust
- `aws_instance`: IMDSv2 enforcement (`metadata_options.http_tokens = "required"`), public IP
- `aws_lambda_function`: execution role over-privilege, reserved concurrency
- `aws_kms_key`: deletion window, key rotation enabled
- `aws_cloudtrail`: multi-region, log file validation, S3 encryption
- `a...

Related skills

OpenClaw

agent-pack-n-go

aicodelion

🚀 Clone your OpenClaw AI Agent to a new device in ~25 minutes — configs, memory, skills, everything.

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

cacheforge-skills

cacheforge-ai

⚡ SOTA agent skills for OpenClaw — observability, security, code quality, incident response, and more. Built by Anvil AI.

OpenClaw

restart-guard

zjianru

OpenClaw Skill: Safely restart the Gateway with context preservation, guardian watchdog, and multi-channel notification