infrastructure-cost-optimization▌
aj-geddes/useful-ai-prompts · updated Apr 8, 2026
Reduce infrastructure costs through intelligent resource allocation, reserved instances, spot instances, and continuous optimization without sacrificing performance.
Infrastructure Cost Optimization
Table of Contents
Overview
Reduce infrastructure costs through intelligent resource allocation, reserved instances, spot instances, and continuous optimization without sacrificing performance.
When to Use
- Cloud cost reduction
- Budget management and tracking
- Resource utilization optimization
- Multi-environment cost allocation
- Waste identification and elimination
- Reserved instance planning
- Spot instance integration
Quick Start
Minimal working example:
# cost-optimization-setup.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: cost-optimization-scripts
namespace: operations
data:
analyze-costs.sh: |
#!/bin/bash
set -euo pipefail
echo "=== AWS Cost Analysis ==="
# Get daily cost trend
echo "Daily costs for last 7 days:"
aws ce get-cost-and-usage \
--time-period Start=$(date -d '7 days ago' +%Y-%m-%d),End=$(date +%Y-%m-%d) \
--granularity DAILY \
--metrics "BlendedCost" \
--group-by Type=DIMENSION,Key=SERVICE \
--query 'ResultsByTime[*].[TimePeriod.Start,Total.BlendedCost.Amount]' \
--output table
# Find unattached resources
echo -e "\n=== Unattached EBS Volumes ==="
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| AWS Cost Optimization Configuration | AWS Cost Optimization Configuration |
| Kubernetes Cost Optimization | Kubernetes Cost Optimization |
| Cost Monitoring Dashboard | Cost Monitoring Dashboard |
Best Practices
✅ DO
- Follow established patterns and conventions
- Write clean, maintainable code
- Add appropriate documentation
- Test thoroughly before deploying
❌ DON'T
- Skip testing or validation
- Ignore error handling
- Hard-code configuration values
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★68 reviews- ★★★★★Mia Nasser· Dec 20, 2024
infrastructure-cost-optimization is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Soo Desai· Dec 16, 2024
Useful defaults in infrastructure-cost-optimization — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Maya Iyer· Dec 12, 2024
infrastructure-cost-optimization fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Anaya Tandon· Dec 12, 2024
infrastructure-cost-optimization reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Benjamin Liu· Dec 8, 2024
infrastructure-cost-optimization is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Shikha Mishra· Dec 4, 2024
I recommend infrastructure-cost-optimization for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Benjamin Farah· Nov 27, 2024
Keeps context tight: infrastructure-cost-optimization is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Benjamin Nasser· Nov 27, 2024
Registry listing for infrastructure-cost-optimization matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Yash Thakker· Nov 23, 2024
infrastructure-cost-optimization fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Chinedu Singh· Nov 11, 2024
Useful defaults in infrastructure-cost-optimization — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
showing 1-10 of 68