bagelhole/devops-security-agent-skills/aws-cost-optimization
Claude Code and agent skill by bagelhole/devops-security-agent-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Reduce AWS spend with rightsizing, autoscaling, commitment planning, and storage lifecycle policies. Use when running FinOps reviews, lowering cloud bills, or improving cost-per-request metrics.
Install
npx vskill@latest install bagelhole/devops-security-agent-skills/aws-cost-optimizationSKILL.md
The same SKILL.md was published earlier as bagelhole/devops-security-agent-skills/aws-cost-optimization.
AWS Cost Optimization
Apply practical FinOps controls to reduce AWS spend without sacrificing reliability or performance.
When to Use This Skill
- Monthly AWS bill spikes unexpectedly or exceeds budget thresholds
- Preparing cost reviews with engineering and finance teams
- Rightsizing EC2, RDS, EKS, or Lambda workloads after load testing
- Choosing between Savings Plans, Reserved Instances, or on-demand pricing
- Setting up automated budget alerts and anomaly detection
- Cleaning up unused resources (unattached EBS, idle load balancers, old snapshots)
- Optimizing data transfer costs across regions and AZs
Prerequisites
- AWS CLI v2 installed and configured (
aws configure) - IAM permissions:
ce:*,budgets:*,ec2:Describe*,cloudwatch:PutMetricAlarm,s3:PutLifecycleConfiguration - Cost Explorer enabled in the AWS billing console (takes 24 hours to populate)
- Cost allocation tags activated in the Billing console
Cost Review Workflow
- Tag every resource by team, service, environment, and cost center.
- Enable Cost Explorer and activate Cost and Usage Reports (CUR) to S3.
- Identify top spend drivers by service, account, and tag.
- Rightsize underutilized compute and storage based on CloudWatch metrics.
- Apply commitment discounts (Savings Plans or RIs) for stable baseline usage.
- Set budgets, anomaly alerts, and build KPI dashboards.
- Review monthly and iterate.
Cost Explorer CLI Commands
Budget Alerts
CloudWatch Cost Alarm
Find and Clean Unused Resources
S3 Lifecycle Cost Optimization
Terraform Budget and Alarm Example
Scheduling Non-Production Shutdowns
Troubleshooting
| Problem | Cause | Fix | |
|---|---|---|---|
| Cost Explorer returns empty data | CE not enabled or < 24h old | Enable in Billing console, wait 24h | |
| Budget alert not firing | SNS subscription not confirmed | Check email and confirm subscription | |
| Rightsizing shows no recommendations | Not enough usage data | Wait 14 days for sufficient metrics | |
| Savings Plans utilization low | Over-purchased or workload changed | Review and adjust SP coverage | |
| Unattached EBS not showing | Wrong region queried | Loop through all active regions | |
| Billing alarm never triggers | Billing metrics only in us-east-1 | Create alarm in us-east-1 region | |
| CUR data missing in S3 | Report not configured or bucket policy wrong | Verify CUR setup in Billing console | |
| Tag-based cost allocation empty | Tags not activated | Activate cost allocation tags in Billing |
Related Skills
- aws-ec2 - EC2 operations, sizing, and Spot instances
- aws-s3 - S3 storage classes and lifecycle controls
- aws-rds - RDS instance sizing and reserved instances
- aws-lambda - Lambda pricing and concurrency tuning
- terraform-aws - Codifying cost guardrails in IaC
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginfrastructure/cloud-aws/aws-cost-optimization/SKILL.md
Popularity
- Repository stars
- 1,180
- Repository forks
- 170
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bagelhole/devops-security-agent-skills/aws-cost-optimization)