一键导入
aws-cost
Analyze AWS costs, billing, and pricing without MCP. Use when the user asks about cost analysis, cost forecast, pricing lookup, or billing reports.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze AWS costs, billing, and pricing without MCP. Use when the user asks about cost analysis, cost forecast, pricing lookup, or billing reports.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guides migration of code between Arm SoCs with architecture-aware analysis and safe migration practices. Use when mentioning Arm SoC, Cortex migration, embedded migration, or Arm architecture porting.
Build, test, and deploy AI agents using AWS Bedrock AgentCore with local development workflow. Use when mentioning AgentCore, Bedrock agents, or AI agent deployment on AWS.
Build full-stack apps with AWS Amplify Gen 2 using TypeScript, guided workflows, and best practices. Use when mentioning Amplify, Amplify Gen 2, fullstack AWS app, Cognito auth, or GraphQL backend.
Monitor AWS with CloudWatch and CloudTrail without MCP. Use when the user asks about logs, metrics, alarms, or API audit trail.
Query and manage AWS data services (DynamoDB, Aurora, Redshift, ElastiCache, Neptune, S3 Tables) without MCP. Use when the user asks about databases, caching, data queries, or data management.
Analyze source code for Graviton (Arm64) compatibility, identify issues, and suggest fixes for language runtimes and dependencies. Use when mentioning Graviton, Arm64 migration, x86 to Arm, or aarch64 porting.
| name | aws-cost |
| description | Analyze AWS costs, billing, and pricing without MCP. Use when the user asks about cost analysis, cost forecast, pricing lookup, or billing reports. |
aws ce get-cost-and-usage \
--time-period Start=$(date -d "$(date +%Y-%m-01)" +%Y-%m-%d),End=$(date +%Y-%m-%d) \
--granularity MONTHLY \
--metrics "BlendedCost" "UnblendedCost"
import boto3
from datetime import date
ce = boto3.client('ce')
today = date.today()
first_day = today.replace(day=1).isoformat()
ce.get_cost_and_usage(
TimePeriod={'Start': first_day, 'End': today.isoformat()},
Granularity='MONTHLY',
Metrics=['BlendedCost', 'UnblendedCost']
)
ce.get_cost_and_usage(
TimePeriod={'Start': '2026-03-01', 'End': '2026-03-08'},
Granularity='DAILY',
Metrics=['BlendedCost'],
GroupBy=[{'Type': 'DIMENSION', 'Key': 'SERVICE'}]
)
ce.get_cost_forecast(
TimePeriod={'Start': today.isoformat(), 'End': today.replace(month=today.month+1, day=1).isoformat()},
Metric='BLENDED_COST',
Granularity='MONTHLY'
)
ce.get_cost_and_usage(
TimePeriod={'Start': first_day, 'End': today.isoformat()},
Granularity='MONTHLY',
Metrics=['BlendedCost'],
GroupBy=[{'Type': 'TAG', 'Key': 'Environment'}]
)
pricing = boto3.client('pricing', region_name='us-east-1')
# List services / 서비스 목록
pricing.describe_services(MaxResults=10)
# EC2 pricing example / EC2 가격 예시
pricing.get_products(
ServiceCode='AmazonEC2',
Filters=[
{'Type': 'TERM_MATCH', 'Field': 'instanceType', 'Value': 't3.medium'},
{'Type': 'TERM_MATCH', 'Field': 'location', 'Value': 'Asia Pacific (Seoul)'},
{'Type': 'TERM_MATCH', 'Field': 'operatingSystem', 'Value': 'Linux'},
],
MaxResults=5
)
billing = boto3.client('billingconductor')
billing.list_billing_groups()
billing.list_account_associations()
ce.get_anomalies(
DateInterval={'StartDate': '2026-03-01', 'EndDate': '2026-03-08'},
MaxResults=10
)
ft = boto3.client('freetier')
ft.get_free_tier_usage()
| Task / 작업 | CLI Command / CLI 명령 |
|---|---|
| Monthly cost / 월간 비용 | aws ce get-cost-and-usage --time-period Start=2026-03-01,End=2026-03-31 --granularity MONTHLY --metrics BlendedCost |
| Daily breakdown / 일별 분석 | Add --granularity DAILY |
| By service / 서비스별 | Add --group-by Type=DIMENSION,Key=SERVICE |
| By region / 리전별 | Add --group-by Type=DIMENSION,Key=REGION |
| By account / 계정별 | Add --group-by Type=DIMENSION,Key=LINKED_ACCOUNT |