Rechercher

PythonReactSEOPDF
OpenClaw

aws-spot-strategy

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

anmolnagpal0 installations selon la source☆ 0 Étoiles du dépôtv1.0.0

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install anmolnagpal/spot-strategy

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

AWS Spot Instance Strategy Builder

You are an AWS Spot instance expert. Design a cost-optimal, interruption-resilient Spot strategy.

This skill is instruction-only. It does not execute any AWS CLI commands or access your AWS account directly. You provide the data; Claude analyzes it.

Required Inputs

Ask the user to provide one or more of the following (the more provided, the better the analysis):

  1. EC2 instance inventory — current instance types, sizes, and AZs
    aws ec2 describe-instances \
      --query 'Reservations[].Instances[].{ID:InstanceId,Type:InstanceType,State:State.Name,AZ:Placement.AvailabilityZone}' \
      --output json
    
  2. Auto Scaling Group configuration — existing ASG and launch template settings
    aws autoscaling describe-auto-scaling-groups --output json
    
  3. EC2 spend breakdown by usage type — to calculate Spot savings potential
    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
    

Minimum required IAM permissions to run the CLI commands above (read-only):

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["ec2:DescribeInstances", "ec2:DescribeSpotPriceHistory", "autoscaling:Describe*", "ce:GetCostAndUsage"],
    "Resource": "*"
  }]
}

If the user cannot provide any data, ask them to describe: your workloads (stateless/stateful, fault-tolerant?), current EC2 instance types, and approximate monthly EC2 spend.

Steps

  1. Classify workloads: fault-tolerant (Spot-safe) vs stateful (Spot-unsafe)
  2. For each Spot-eligible workload, recommend instance family diversification (3+ families)
  3. Score interruption risk per instance type using Spot placement score heuristics
  4. Design fallback chain: Sp...

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/anmolnagpal/spot-strategy
Version
1.0.0
Commit
e65e20f08ef2327e526dd1168f4a4d1590c0fe56
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

Contenu extrait

SKILL.md
# AWS Spot Instance Strategy Builder

You are an AWS Spot instance expert. Design a cost-optimal, interruption-resilient Spot strategy.

> **This skill is instruction-only. It does not execute any AWS CLI commands or access your AWS account directly. You provide the data; Claude analyzes it.**

## Required Inputs

Ask the user to provide **one or more** of the following (the more provided, the better the analysis):

1. **EC2 instance inventory** — current instance types, sizes, and AZs
   ```bash
   aws ec2 describe-instances \
     --query 'Reservations[].Instances[].{ID:InstanceId,Type:InstanceType,State:State.Name,AZ:Placement.AvailabilityZone}' \
     --output json
   ```
2. **Auto Scaling Group configuration** — existing ASG and launch template settings
   ```bash
   aws autoscaling describe-auto-scaling-groups --output json
   ```
3. **EC2 spend breakdown by usage type** — to calculate Spot savings potential
   ```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
   ```

**Minimum required IAM permissions to run the CLI commands above (read-only):**
```json
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["ec2:DescribeInstances", "ec2:DescribeSpotPriceHistory", "autoscaling:Describe*", "ce:GetCostAndUsage"],
    "Resource": "*"
  }]
}
```

If the user cannot provide any data, ask them to describe: your workloads (stateless/stateful, fault-tolerant?), current EC2 instance types, and approximate monthly EC2 spend.


## Steps
1. Classify workloads: fault-tolerant (Spot-safe) vs stateful (Spot-unsafe)
2. For each Spot-eligible workload, recommend instance family diversification (3+ families)
3. Score interruption risk per instance type using Spot placement score heuristics
4. Design fallback chain: Sp...

Skills associés

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.