“六个月前,每个人都在谈论MCP。我当时想,拧紧MCP。每个MCP作为CLI都会更好。” — 彼得·斯坦伯格OpenClaw创始人 在YouTube上观看(~2:39:00) | 莱克斯·弗里德曼播客#491
AWS预算CLI
AWS预算成本管理API的生产就绪CLI。从您的终端跟踪支出、设置警报和管理预算通知。
安装
npm install -g @ktmcp-cli/awsbudgets配置
awsbudgets config set --access-key-id YOUR_ACCESS_KEY_ID \
--secret-access-key YOUR_SECRET_ACCESS_KEY \
--account-id YOUR_AWS_ACCOUNT_ID用法
配置
# Set AWS credentials
awsbudgets config set --access-key-id --secret-access-key --account-id
# Get a config value
awsbudgets config get accountId
# List all config
awsbudgets config list预算
# List all budgets
awsbudgets budgets list
# Get budget details
awsbudgets budgets get my-monthly-budget
# Create a monthly cost budget
awsbudgets budgets create \
--name "Monthly Production Costs" \
--amount 1000 \
--unit USD \
--time-unit MONTHLY
# Create a daily usage budget
awsbudgets budgets create \
--name "Daily EC2 Usage" \
--amount 50 \
--unit USD \
--time-unit DAILY \
--type USAGE
# Update budget limit
awsbudgets budgets update my-monthly-budget --amount 1500
# Delete a budget
awsbudgets budgets delete my-monthly-budget
# JSON output
awsbudgets budgets list --json通知
# List notifications for a budget
awsbudgets notifications list my-monthly-budget
# Create a notification at 80% threshold
awsbudgets notifications create my-monthly-budget \
--type ACTUAL \
--threshold 80 \
--email alerts@company.com
# Create a forecasted spend notification
awsbudgets notifications create my-monthly-budget \
--type FORECASTED \
--threshold 100 \
--email cfo@company.com
# Delete a notification
awsbudgets notifications delete my-monthly-budget \
--type ACTUAL \
--threshold 80订阅者
# List subscribers for a notification
awsbudgets subscribers list my-monthly-budget \
--type ACTUAL \
--threshold 80
# Add a subscriber
awsbudgets subscribers create my-monthly-budget \
--type ACTUAL \
--threshold 80 \
--email team@company.com
# Add SNS subscriber
awsbudgets subscribers create my-monthly-budget \
--type ACTUAL \
--threshold 90 \
--email arn:aws:sns:us-east-1:123456789:MyBudgetTopic \
--sub-type SNS
# Remove a subscriber
awsbudgets subscribers delete my-monthly-budget \
--type ACTUAL \
--threshold 80 \
--email team@company.com预算类型
COST--跟踪美元支出(默认)USAGE--跟踪服务使用情况(例如EC2小时数)RI_UTILIZATION--保留实例利用率RI_COVERAGE--保留实例覆盖范围SAVINGS_PLANS_UTILIZATION--储蓄计划利用率SAVINGS_PLANS_COVERAGE--储蓄计划覆盖范围
时间段
DAILY--每天重置MONTHLY--每月重置(最常见)QUARTERLY--每季度重置一次ANNUALLY--每年重置
许可证
麻省理工学院
______________________________________________________________________
支持KTMCP
如果您发现此CLI有用,我们将非常感谢您的支持!分享您的经验:
- 红迪
- 推特/X
- 黑客新闻
激励: 能够证明他们的支持/倡导有助于推进KTMCP的用户将优先考虑他们的功能请求和问题。
请注意,这些是真实的账户和真实的社区。真实的提及和真实的推荐会有很长的路要走!
支持这个项目
如果您发现此CLI有用,我们将感谢Reddit、Twitter、Hacker News或Moltbook的支持。请注意,这些是真实的社区账户。能够证明其支持有助于推进KTMCP的贡献者将优先考虑其PR和功能请求。
