TopRank Skills

Home / Claw Skills / DevOps / aws-terraform-security-reviewer
Official OpenClaw rules 36%

aws-terraform-security-reviewer

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

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 aws-terraform-security-reviewer 技能。 若已安装,则直接安装 aws-terraform-security-reviewer 技能。

Overview

Skill Key
anmolnagpal/terraform-reviewer
Author
anmolnagpal
Source Repo
openclaw/skills
Version
1.0.0
Source Path
skills/anmolnagpal/terraform-reviewer
Latest Commit SHA
97580e7f043f40b952ad8411bbce71fd0a564107

Extracted Content

SKILL.md excerpt

# 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 Claw Skills