aws-console

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

AWS Console Skill

AWS Console Skill

Overview

概述

Enables Claude to access AWS Console to view resources, check billing and costs, monitor service health, and manage cloud infrastructure across Amazon Web Services.
使Claude能够访问AWS Console,以查看资源、核对账单与成本、监控服务运行状况,并管理亚马逊云科技(AWS)的云基础设施。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/aws-console/install.sh | bash
Or manually:
bash
cp -r skills/aws-console ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/aws-console/install.sh | bash
或者手动安装:
bash
cp -r skills/aws-console ~/.canifi/skills/

Setup

配置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set AWS_EMAIL "your-email@example.com"
undefined
canifi-env set AWS_EMAIL "your-email@example.com"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
您的凭证,由您掌控。 Canifi LifeOS尊重您的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果您不想与Claude Code共享凭证:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录服务
  3. Claude将使用您的已认证会话,全程不会获取您的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果您愿意共享凭证,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭证仅能在您的本地机器上访问,绝不会被传输至外部。

Capabilities

功能

  • View EC2 instances and status
  • Check S3 bucket storage
  • Monitor Lambda functions
  • View CloudWatch metrics
  • Check billing and cost explorer
  • View service health dashboard
  • 查看EC2实例及其状态
  • 查看S3存储桶存储情况
  • 监控Lambda函数
  • 查看CloudWatch指标
  • 核对账单与成本资源管理器数据
  • 查看服务运行状况仪表板

Usage Examples

使用示例

Example 1: Check EC2 Instances

示例1:查看EC2实例

User: "What EC2 instances are running?"
Claude: I'll check your AWS EC2.
- Opens console.aws.amazon.com via Playwright MCP
- Logs into AWS
- EC2 Instances (us-east-1):
  - web-server-1: t3.medium, running
  - api-server-1: t3.large, running
  - db-server: r5.large, running
- Total: 3 running, 2 stopped
- Monthly estimate: $156
用户:“哪些EC2实例正在运行?”
Claude:我将为您查看AWS EC2。
- 通过Playwright MCP打开console.aws.amazon.com
- 登录AWS
- EC2实例(us-east-1区域):
  - web-server-1:t3.medium,运行中
  - api-server-1:t3.large,运行中
  - db-server:r5.large,运行中
- 总计:3台运行中,2台已停止
- 月度预估费用:156美元

Example 2: Check AWS Costs

示例2:查看AWS成本

User: "What are my AWS costs this month?"
Claude: I'll check Cost Explorer.
- Views Billing & Cost Management
- Current month: $234.56
- Forecast: $312.00
- Top services:
  - EC2: $145.00
  - RDS: $67.00
  - S3: $12.50
  - Lambda: $5.00
- vs last month: +8%
用户:“我本月的AWS成本是多少?”
Claude:我将为您查看成本资源管理器。
- 查看账单与成本管理页面
- 当前月度费用:234.56美元
- 预估费用:312.00美元
- 主要服务费用:
  - EC2:145.00美元
  - RDS:67.00美元
  - S3:12.50美元
  - Lambda:5.00美元
- 较上月变化:+8%

Example 3: View Lambda Functions

示例3:查看Lambda函数

User: "How are my Lambda functions doing?"
Claude: I'll check Lambda dashboard.
- Views Lambda functions
- Functions: 8 total
- Invocations (24h): 45,678
- Errors: 12 (0.03%)
- Duration avg: 234ms
- Most active: api-handler (32k calls)
- Cold starts: Minimal
用户:“我的Lambda函数运行情况如何?”
Claude:我将为您查看Lambda仪表板。
- 查看Lambda函数列表
- 函数总数:8个
- 调用次数(24小时):45,678次
- 错误数:12次(0.03%)
- 平均执行时长:234ms
- 最活跃函数:api-handler(32k次调用)
- 冷启动情况:极少

Authentication Flow

认证流程

  1. Navigate to console.aws.amazon.com via Playwright MCP
  2. Enter email or IAM username
  3. Enter password
  4. Handle MFA (authenticator required)
  5. Select region if needed
  6. Maintain session for console access
  1. 通过Playwright MCP导航至console.aws.amazon.com
  2. 输入邮箱或IAM用户名
  3. 输入密码
  4. 处理MFA(需要验证器)
  5. 如有需要,选择区域
  6. 维持会话以进行控制台访问

Error Handling

错误处理

  • Login Failed: Check IAM permissions
  • MFA Required: Complete verification
  • Permission Denied: Check IAM policies
  • Session Expired: Re-authenticate (short sessions)
  • Rate Limited: Wait and retry
  • Region Issue: Switch regions
  • 登录失败:检查IAM权限
  • 需要MFA:完成验证
  • 权限拒绝:检查IAM策略
  • 会话过期:重新认证(会话时长较短)
  • 请求受限:等待后重试
  • 区域问题:切换区域

Self-Improvement Instructions

自我优化说明

After each interaction:
  • Track common service checks
  • Note cost monitoring patterns
  • Log resource usage
  • Document console changes
Suggest updates when:
  • AWS updates console
  • New services added
  • Pricing changes
  • Security features update
每次交互后:
  • 记录常见的服务检查需求
  • 记录成本监控模式
  • 记录资源使用情况
  • 记录控制台变更
在以下情况时建议更新:
  • AWS更新控制台
  • 添加新服务
  • 定价变更
  • 安全功能更新

Notes

注意事项

  • AWS requires strong authentication
  • Multiple regions to check
  • Cost optimization important
  • CloudWatch for monitoring
  • IAM for access control
  • Use AWS Organizations for multi-account
  • Reserved instances for savings
  • AWS要求强认证
  • 需检查多个区域
  • 成本优化至关重要
  • 使用CloudWatch进行监控
  • 使用IAM进行访问控制
  • 使用AWS Organizations管理多账户
  • 使用预留实例节省成本