aws-cost-operations
Skill9 starsChanged 8 months agoMITView on GitHub
AWS cost optimization and operations. Use when analyzing costs with Cost Explorer, setting budgets, right-sizing resources, evaluating Savings Plans or reducing per-service costs.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- aws-samples/sample-agent-skills-for-builderstheir own version, first seen Aug 21, 2026
- CommandCodeAI/agent-skillstheir own version, first seen Dec 24, 2025
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- CommandCodeAI/agent-skills★ 131same name
- aws-samples/sample-agent-skills-for-builders★ 51same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- aws-apiSkill
- aws-architectureSkill
- aws-cdkSkill
- aws-cloudfrontSkill
- aws-diagramsSkill
- aws-dynamodbSkill
- aws-ec2Skill
- aws-lambda-pythonSkill
- aws-lambda-typescriptSkill
- aws-observabilitySkill
- aws-rdsSkill
- aws-s3Skill
- aws-securitySkill
- aws-serverlessSkill
- aws-terraformSkill
- aws-testingSkill
- find-skillsSkill
- javascript-runtimeSkill
- orbit-bootstrapSkill
- python-runtimeSkill
- typescript-runtimeSkill
The file
Files
AWS Cost & Operations
Skill para optimización de costos AWS, monitoreo de gastos, presupuestos, right-sizing, Savings Plans, análisis con Cost Explorer y estrategias de reducción de costos por servicio.
Principios fundamentales
- Cost awareness desde día 1. Estimar costos antes de desplegar.
- Tag everything: tags de
Project,Environment,Team,ManagedByen todos los recursos. - Right-size primero, reservar después. Medir uso real antes de comprar Savings Plans.
- Alertas de presupuesto configuradas. Nunca operar sin Budget alerts.
- Revisar costos semanalmente. Cost Explorer como herramienta principal.
Estrategias de optimización por servicio
| Servicio | Estrategia | Ahorro estimado |
| Lambda | Right-size memory (Powertools Tracer), ARM64 (Graviton) | 20-40% |
| DynamoDB | On-demand → Provisioned con auto-scaling para cargas estables | 30-50% |
| S3 | Lifecycle policies (IA → Glacier), Intelligent-Tiering | 40-70% |
| EC2 | Savings Plans, Spot para batch, right-sizing | 30-60% |
| RDS | Reserved Instances, Aurora Serverless v2 para cargas variables | 30-50% |
| NAT Gateway | VPC endpoints para tráfico a servicios AWS | 50-80% |
| CloudWatch | Ajustar log retention, filtrar métricas innecesarias | 20-40% |
Presupuestos y alertas (CDK)
new budgets.CfnBudget(this, 'MonthlyBudget', {
budget: {
budgetName: `${projectName}-monthly`,
budgetType: 'COST',
timeUnit: 'MONTHLY',
budgetLimit: { amount: 500, unit: 'USD' },
},
notificationsWithSubscribers: [
{
notification: {
notificationType: 'ACTUAL',
comparisonOperator: 'GREATER_THAN',
threshold: 80,
thresholdType: 'PERCENTAGE',
},
subscribers: [{ subscriptionType: 'EMAIL', address: 'team@example.com' }],
},
{
notification: {
notificationType: 'FORECASTED',
comparisonOperator: 'GREATER_THAN',
threshold: 100,
thresholdType: 'PERCENTAGE',
},
subscribers: [{ subscriptionType: 'EMAIL', address: 'team@example.com' }],
},
],
});Tags de cost allocation obligatorios
cdk.Tags.of(app).add('Project', projectName);
cdk.Tags.of(app).add('Environment', stage);
cdk.Tags.of(app).add('Team', teamName);
cdk.Tags.of(app).add('ManagedBy', 'CDK');
cdk.Tags.of(app).add('CostCenter', costCenter);Lambda: optimización de costos
// ARM64 (Graviton2) es ~20% más barato y ~34% mejor rendimiento
new lambda.Function(this, 'Handler', {
architecture: lambda.Architecture.ARM_64,
memorySize: 256, // Medir con Powertools y ajustar
timeout: cdk.Duration.seconds(30),
// ...
});- Usar
Powertools Tracerpara medir duración real y ajustar memory. - ARM64 (Graviton2): 20% más barato que x86_64.
- Reducir bundle size con tree-shaking y minification.
- Excluir
@aws-sdk/*del bundle (ya incluido en runtime).
S3: lifecycle policies para reducir costos
| Clase | Costo (us-east-1) | Caso de uso |
| Standard | $0.023/GB | Acceso frecuente |
| Intelligent-Tiering | $0.023/GB + monitoring | Patrones de acceso impredecibles |
| Standard-IA | $0.0125/GB | Acceso infrecuente (>30 días) |
| Glacier Instant | $0.004/GB | Archival con acceso inmediato |
| Glacier Flexible | $0.0036/GB | Archival (minutos a horas) |
| Glacier Deep Archive | $0.00099/GB | Archival largo plazo (12+ horas) |
Herramientas de análisis de costos
# Cost Explorer CLI
aws ce get-cost-and-usage \
--time-period Start=2024-01-01,End=2024-01-31 \
--granularity MONTHLY \
--metrics "BlendedCost" \
--group-by Type=DIMENSION,Key=SERVICE
# Infracost para estimación pre-deploy (Terraform)
infracost breakdown --path .
infracost diff --path . --compare-to infracost-base.jsonAnti-patrones a evitar
- ❌ Desplegar sin estimar costos primero.
- ❌ Recursos sin tags de cost allocation.
- ❌ No tener Budget alerts configurados.
- ❌ Over-provisioning "por si acaso" sin medir.
- ❌ NAT Gateway para tráfico a servicios AWS (usar VPC endpoints).
- ❌ Logs sin retention policy (costos infinitos).
- ❌ DynamoDB provisioned sin auto-scaling.
- ❌ EBS snapshots huérfanos acumulándose.
- ❌ Elastic IPs no asociadas (cobran $0.005/hora).
- ❌ Ignorar Savings Plans para cargas estables.
Checklist de costos
- Budget alerts configurados (80% actual, 100% forecasted).
- Tags de cost allocation en todos los recursos.
- Cost Explorer revisado semanalmente.
- Lambda en ARM64 (Graviton2) donde sea posible.
- S3 lifecycle policies configuradas.
- DynamoDB: modo de capacidad elegido conscientemente.
- VPC endpoints para servicios AWS frecuentes.
- Log retention configurado por ambiente.
- Savings Plans evaluados para cargas estables.
- Infracost o similar en CI para estimación pre-deploy.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

