{
  "schema_version": 1,
  "kind": "article",
  "title": "Finding unused AWS resources with FinOps Guardian",
  "description": "Set up scheduled AWS resource checks, review idle resources across regions, and test cleanup actions with dry-run reports.",
  "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian",
  "markdown_url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian.md",
  "json_url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian.json",
  "language": "en",
  "author": {
    "type": "Organization",
    "name": "CloudOn",
    "url": "https://cloudon-one.com/"
  },
  "rights_url": "https://cloudon-one.com/terms",
  "indexable": true,
  "headings": [
    {
      "level": 2,
      "text": "Where unused resources accumulate",
      "id": "where-unused-resources-accumulate",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#where-unused-resources-accumulate"
    },
    {
      "level": 2,
      "text": "How FinOps Guardian checks resources",
      "id": "how-finops-guardian-checks-resources",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#how-finops-guardian-checks-resources"
    },
    {
      "level": 2,
      "text": "Highlights at a Glance",
      "id": "highlights-at-a-glance",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#highlights-at-a-glance"
    },
    {
      "level": 3,
      "text": "1. Multi-Resource Support",
      "id": "1-multi-resource-support",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#1-multi-resource-support"
    },
    {
      "level": 3,
      "text": "2. Fail-Safe Features",
      "id": "2-fail-safe-features",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#2-fail-safe-features"
    },
    {
      "level": 3,
      "text": "3. Efficient & Intelligent",
      "id": "3-efficient--intelligent",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#3-efficient--intelligent"
    },
    {
      "level": 3,
      "text": "4. Built-In Notifications",
      "id": "4-built-in-notifications",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#4-built-in-notifications"
    },
    {
      "level": 2,
      "text": "Under the Hood: How It Works",
      "id": "under-the-hood-how-it-works",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#under-the-hood-how-it-works"
    },
    {
      "level": 2,
      "text": "Configuring Your Setup",
      "id": "configuring-your-setup",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#configuring-your-setup"
    },
    {
      "level": 2,
      "text": "How to Deploy",
      "id": "how-to-deploy",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#how-to-deploy"
    },
    {
      "level": 3,
      "text": "1. Clone the Repository",
      "id": "1-clone-the-repository",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#1-clone-the-repository"
    },
    {
      "level": 3,
      "text": "2. Configure Variables (terraform.tfvars)",
      "id": "2-configure-variables-terraformtfvars",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#2-configure-variables-terraformtfvars"
    },
    {
      "level": 3,
      "text": "3. Deploy with Terraform",
      "id": "3-deploy-with-terraform",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#3-deploy-with-terraform"
    },
    {
      "level": 2,
      "text": "Best Practices",
      "id": "best-practices",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#best-practices"
    },
    {
      "level": 3,
      "text": "1. Start Safe",
      "id": "1-start-safe",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#1-start-safe"
    },
    {
      "level": 3,
      "text": "2. Tag Wisely",
      "id": "2-tag-wisely",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#2-tag-wisely"
    },
    {
      "level": 3,
      "text": "3. Stay Proactive",
      "id": "3-stay-proactive",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#3-stay-proactive"
    },
    {
      "level": 2,
      "text": "Review the first scan",
      "id": "review-the-first-scan",
      "url": "https://cloudon-one.com/blog/slash-aws-costs-finops-guardian#review-the-first-scan"
    }
  ],
  "date_published": "2025-01-10T00:00:00.000Z",
  "tags": [
    "AWS",
    "FinOps",
    "Cost Optimization",
    "Lambda",
    "Terraform"
  ],
  "content_markdown": "---\ntitle: Finding unused AWS resources with FinOps Guardian\ndescription: Set up scheduled AWS resource checks, review idle resources across regions, and test cleanup actions with dry-run reports.\nurl: https://cloudon-one.com/blog/slash-aws-costs-finops-guardian\nauthor: CloudOn\nlanguage: en\ndate_published: '2025-01-10T00:00:00.000Z'\ntags:\n  - AWS\n  - FinOps\n  - Cost Optimization\n  - Lambda\n  - Terraform\nrights_url: https://cloudon-one.com/terms\n---\n\n# Finding unused AWS resources with FinOps Guardian\n\nIdle instances, unattached volumes, and abandoned load balancers can keep adding to an AWS bill after a project has finished. FinOps Guardian checks for these resources across regions and reports what it finds.\n\nThis walkthrough covers how to:\n\n- Identify wasteful resources across multiple AWS regions\n- Automatically shut down or remove them\n- Integrate safety measures so critical workloads stay protected\n\n## Where unused resources accumulate\n\nOver time, AWS environments accumulate \"resource clutter\" such as:\n\n- **Development instances** running after hours\n- **Unattached EBS volumes** left behind when instances are terminated\n- **Empty load balancers** from outdated services\n- **Idle RDS instances** in non-production environments\n- **Unused Kinesis streams** and OpenSearch domains\n\nEach one continues to bill you until manually deleted. Hand cleaning is risky, slow, and prone to errors. In busy or large teams, resource sprawl becomes nearly impossible to track.\n\n**Automation** is the key to keeping your AWS environment lean and cost-effective.\n\n## How FinOps Guardian checks resources\n\nOur open-source project provides an all-in-one, serverless application to locate and remove orphaned resources automatically. Running as an AWS Lambda function on a schedule, it examines your resources across different AWS regions and proactively cleans them up.\n\n## Highlights at a Glance\n\n### 1. Multi-Resource Support\n\n- **EC2**: Stop running instances and disable unneeded detailed monitoring\n- **Elastic IPs**: Release any unassociated addresses\n- **EBS Volumes**: Remove unattached volumes\n- **Load Balancers**: Clean up idle, empty ones\n- **RDS**: Stop or remove non-production instances and clusters\n- **EKS**: Scale node groups to zero when not in use\n- **Kinesis, MSK, OpenSearch**: Delete unused streams, clusters, and domains\n\n### 2. Fail-Safe Features\n\n- **Dry Run Mode**: Test the entire cleanup logic before actual deletion\n- **Tag Protection**: Tag critical resources you want to keep\n- **Spot Instance & EKS Volume Preservation**: Prevent accidental terminations\n- **Special Handling for Critical Services**: Granular control on high-impact resources\n\n### 3. Efficient & Intelligent\n\n- **Concurrent Execution**: Speeds up multi-region cleanups\n- **Comprehensive Error Handling & Logging**: Easy troubleshooting\n- **Detailed Reporting**: Know exactly which resources got cleaned or skipped\n\n### 4. Built-In Notifications\n\n- **SES Email Alerts**: Get cleanup reports in your inbox\n- **Status Summaries**:\n  - Successfully deleted resources\n  - Skipped or protected resources\n  - Any failures or errors\n\n## Under the Hood: How It Works\n\nThe Python implementation uses:\n\n- **Lambda** as the engine for cleanup logic\n- **CloudWatch Events** for automatic scheduling\n- **SES** for sending out email notifications\n- **IAM Roles** to securely access AWS services and resources\n\n## Configuring Your Setup\n\n- *CHECK_ALL_REGIONS*: Toggle between scanning all AWS regions or a select few\n- *KEEP_TAG_KEY*: Specify the tag key/value pairs to preserve specific resources\n- *DRY_RUN*: Enable or disable simulation mode\n- *EMAIL_IDENTITY / TO_ADDRESS*: Set up verified SES email addresses for alerts\n- **Multi-Region**: Tweak settings to clean up resources across whichever regions matter to you\n\n## How to Deploy\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/cloudon-one/FinOps-Guardian.git\ncd aws-finops\n```\n\n### 2. Configure Variables (terraform.tfvars)\n\n```hcl\nfunction_name     = \"aws-resource-cleanup\"\ncheck_all_regions = false\nkeep_tag_key      = { \"auto-deletion\" = \"skip-resource\" }\ndry_run           = true\nemail_identity    = \"your-email@domain.com\"\nto_address        = \"notifications@domain.com\"\nevent_cron        = \"cron(0 20 * * ? *)\" # 8 PM GMT\n```\n\n### 3. Deploy with Terraform\n\n```bash\nterraform init\nterraform plan\nterraform apply\n```\n\n## Best Practices\n\n### 1. Start Safe\n\n- Use *dry_run = true* to watch the cleanup process without risking necessary resources\n- Run in a non-production environment first\n- Review your initial cleanup reports to validate the results\n\n### 2. Tag Wisely\n\n- Maintain a consistent tagging strategy\n- Use descriptive tags for critical systems (e.g., *auto-deletion=skip-resource*)\n- Regularly audit which resources are protected\n\n### 3. Stay Proactive\n\n- Keep an eye on your CloudWatch Logs for errors or anomalies\n- Promptly address any email notifications\n- Re-verify your SES email configuration periodically\n- Refine and update your tagging as business needs evolve\n\n## Review the first scan\n\nStart with a dry-run report and check each proposed action against resource ownership, tags, and dependencies. Enable cleanup only for the scope your team has reviewed.\n\nThe project is open-source under the MIT License, and we welcome any contributions or feedback.\n\nCheck out our [GitHub repo](https://github.com/cloudon-one/FinOps-Guardian) for the code, documentation, and the latest updates.\n\n**Pro Tip**: Always start in dry-run mode and thoroughly test in a safe environment before rolling out to production.\n",
  "content_sha256": "2f5f553cac2099f12436573239a43dd50d781e038f534e021efa5e36747adda5"
}
