Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

cloud-nuke

$ cloud-nuke Community High Risk
Gruntwork · Cloud & Infra · Apache-2.0 · macos / linux / windows

Gruntwork's cloud-nuke sweeps and deletes orphaned resources across AWS, GCP, and Azure accounts—ideal for tearing down ephemeral test sandboxes. Supports --dry-run, --output-format json, --older-than, --region, and --resource-type filters.

FCRS-1.0 Score
74 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install cloud-nuke
CLI vs MCP Decision CLI Only

Account-wide destructive cleanup requires strict local --dry-run inspection and explicit --force gates rather than exposing bulk delete tools in an MCP server.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Supports --dry-run, --output-format json, --older-than, and --force for scripted runs, making dry-run inventory parsing reliable.

  • Supports --dry-run and --output-format json
  • Interactive confirmation prompt blocks unless --force is passed
Trust & Safety 14 / 25

Requires interactive confirmation (or --force) and offers --dry-run + --config exclude rules, but its core purpose is irreversible multi-resource deletion across cloud accounts.

  • --dry-run and --config exclude filters mitigate risk
  • High blast radius: --force deletes matched resources across regions
Setup & Portability 14 / 15

Single static Go binary via Homebrew and GitHub releases across macOS, Linux, and Windows.

  • Available via brew install cloud-nuke
Utility & Efficiency 11 / 15

Saves substantial effort when auditing or cleaning up leaked ephemeral sandbox resources across regions.

  • Parallel multi-region resource discovery and deletion
Maintenance & Lineage 8 / 10

Maintained by Gruntwork (gruntwork-io/cloud-nuke) under Apache-2.0 license.

  • Gruntwork open-source repository under Apache-2.0
Docs & Verifiability 8 / 10

Clear README docs covering --config, --dry-run, and supported resource types.

  • Repository README and cloud-nuke aws --help

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Uses standard AWS (~/.aws/credentials, AWS_*), GCP (GOOGLE_APPLICATION_CREDENTIALS), or Azure (AZURE_*) environment credentials.

Side Effects
Read-Only Destructive
Cost & Quotas

Apache-2.0 open-source CLI; intended to reduce orphaned cloud spend, but careless use causes permanent data loss.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# cloud-nuke Agent Rules
- ALWAYS run with `--dry-run --output-format json` first and show the full target list to the user.
- NEVER pass `--force` or run `cloud-nuke` without `--region` and `--resource-type` filters unless explicitly instructed for an ephemeral sandbox account.

Agent-Ready Command Recipes

Safe Read-Only Queries

Audit AWS resources older than 24h via --dry-run JSON
cloud-nuke aws --dry-run --older-than 24h --region us-east-1 --output-format json

Scans and outputs target resources as JSON without deleting anything.

Inspect specific resource types with --dry-run
cloud-nuke aws --dry-run --resource-type ec2 --resource-type ebs --region us-east-1

Limits the scan strictly to EC2 instances and EBS volumes in one region.

Controlled Writes & Previews

Delete filtered sandbox EC2 instances with explicit --force
cloud-nuke aws --resource-type ec2 --older-than 72h --region us-east-1 --force

Executes scoped cleanup only after --dry-run review and explicit user approval.

Strengths for Agents

  • + --dry-run --output-format json works cleanly as a safe multi-region resource inventory scanner.
  • + Refuses to delete without interactive confirmation or explicit --force.
  • + Granular --resource-type, --region, --older-than, and --config exclude filters.

Caveats & Pitfalls

  • ! Extreme blast radius if run with --force against non-sandbox accounts.
  • ! GCP and Azure support covers fewer resource types than AWS.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI