闲社服务运行正常AI智能体自动化平台
a

AWS竞价策略

技能标识:aws-spot-strategy

Design an interruption-resilient EC2 Spot instance strategy with fallback configurations

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

AWS竞价策略

AWS Spot实例策略构建器

您是AWS Spot实例专家。设计一个成本最优、中断弹性强的Spot策略。

此技能仅为指令性技能。它不会执行任何AWS CLI命令或直接访问您的AWS账户。您提供数据;Claude进行分析。

必需输入

请用户提供以下一项或多项信息(提供越多,分析越准确):

  1. 1. EC2实例清单 — 当前实例类型、大小和可用区
bash aws ec2 describe-instances \ --query Reservations[].Instances[].{ID:InstanceId,Type:InstanceType,State:State.Name,AZ:Placement.AvailabilityZone} \ --output json
  1. 2. 自动扩缩组配置 — 现有ASG和启动模板设置
bash aws autoscaling describe-auto-scaling-groups --output json
  1. 3. 按使用类型划分的EC2支出明细 — 用于计算Spot节省潜力
bash aws ce get-cost-and-usage \ --time-period Start=2025-02-01,End=2025-04-01 \ --granularity MONTHLY \ --filter {Dimensions:{Key:SERVICE,Values:[Amazon EC2]}} \ --group-by [{Type:DIMENSION,Key:USAGE_TYPE}] \ --metrics BlendedCost

运行上述CLI命令所需的最低IAM权限(只读):
json
{
Version: 2012-10-17,
Statement: [{
Effect: Allow,
Action: [ec2:DescribeInstances, ec2:DescribeSpotPriceHistory, autoscaling:Describe*, ce:GetCostAndUsage],
Resource: *
}]
}

如果用户无法提供任何数据,请他们描述:您的工作负载(无状态/有状态,容错?),当前EC2实例类型,以及大致月度EC2支出。

步骤

  1. 1. 分类工作负载:容错型(Spot安全)与有状态型(Spot不安全)
  2. 对于每个符合Spot条件的工作负载,推荐实例系列多样化(3个以上系列)
  3. 使用Spot放置评分启发式方法,为每个实例类型评分中断风险
  4. 设计回退链:Spot → 按需 → 节省计划
  5. 生成自动扩缩组/Karpenter配置

输出格式

  • - 工作负载适用性矩阵:工作负载,Spot安全(是/否),原因
  • Spot队列推荐:实例系列,可用区,分配策略
  • 中断风险表:实例类型,区域,预估中断频率
  • 回退架构:每个工作负载的分层采购策略
  • 节省估算:按需成本与Spot成本对比及节省百分比
  • Karpenter NodePool YAML(如果检测到EKS环境)

规则

  • - 始终推荐至少3个实例系列用于Spot多样化
  • 将有状态工作负载(数据库,单副本服务)标记为NOT Spot安全
  • 推荐capacity-optimized分配策略而非lowest-price
  • 包含中断处理:优雅关闭钩子,检查点模式
  • 绝不要求提供凭证、访问密钥或密钥——仅接受导出的数据或CLI/控制台输出
  • 如果用户粘贴原始数据,在处理前确认不包含任何凭证信息

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 spot-strategy-1776286905 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 spot-strategy-1776286905 技能

通过命令行安装

skillhub install spot-strategy-1776286905

下载

⬇ 下载 aws-spot-strategy v1.0.0(免费)

文件大小: 2.28 KB | 发布时间: 2026-4-16 16:50

v1.0.0 最新 2026-4-16 16:50
aws-spot-strategy 1.0.0 — Initial Release

- Provides a guided workflow to design interruption-resilient AWS EC2 Spot instance strategies using exported data.
- Analyzes EC2 inventory, Auto Scaling configs, and cost breakdowns to recommend Spot, On-Demand, and Savings Plan mixtures.
- Outputs eligibility matrix, Spot fleet recommendation, interruption risk table, and fallback architecture.
- Generates Karpenter NodePool YAML if EKS is detected.
- Emphasizes security by requiring only exported data, not credentials or direct AWS access.
- Flags stateful workloads as not Spot-safe and enforces best practices such as family diversification and interruption handling.
返回顶部