cloud-nuke
$ cloud-nuke Community High RiskGruntwork'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.
brew install cloud-nuke 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
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --dry-run, --output-format json, --older-than, and --force for scripted runs, making dry-run inventory parsing reliable.
- Supports
--dry-runand--output-format json - Interactive confirmation prompt blocks unless
--forceis passed
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-runand--configexclude filters mitigate risk- High blast radius:
--forcedeletes matched resources across regions
Single static Go binary via Homebrew and GitHub releases across macOS, Linux, and Windows.
- Available via
brew install cloud-nuke
Saves substantial effort when auditing or cleaning up leaked ephemeral sandbox resources across regions.
- Parallel multi-region resource discovery and deletion
Maintained by Gruntwork (gruntwork-io/cloud-nuke) under Apache-2.0 license.
- Gruntwork open-source repository under Apache-2.0
Clear README docs covering --config, --dry-run, and supported resource types.
- Repository README and
cloud-nuke aws --help
Security, Auth & Guardrails
Uses standard AWS (~/.aws/credentials, AWS_*), GCP (GOOGLE_APPLICATION_CREDENTIALS), or Azure (AZURE_*) environment credentials.
Apache-2.0 open-source CLI; intended to reduce orphaned cloud spend, but careless use causes permanent data loss.
# 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
--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.
--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
--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 jsonworks 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--configexclude filters.
Caveats & Pitfalls
- ! Extreme blast radius if run with
--forceagainst non-sandbox accounts. - ! GCP and Azure support covers fewer resource types than AWS.