К основному содержанию
скилл CX Codex

aws-fault-injection-service — скилл для Claude Code: хаос-тесты

Помогает проектировать, запускать и разбирать эксперименты хаос-инжиниринга в AWS FIS. Пригодится при проверке устойчивости сервисов к сбоям зон доступности, баз данных или потере пакетов.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add aws/agent-toolkit-for-aws --skill aws-fault-injection-service -a claude-code
Открыть на GitHub

Что делает aws-fault-injection-service

Скилл переводит описания сбоев в параметры экспериментов AWS FIS. Агент находит подходящие действия в каталоге сервиса, выбирает ресурсы-мишени и задаёт условия автоматической остановки stop conditions. Доступны готовые сценарии: отключение питания зоны доступности или стресс-тесты для EC2 и EKS.

Действия затрагивают реальные ресурсы AWS. Для выполнения команд рекомендуется AWS MCP-сервер с изолированным запуском и аудитом, хотя подойдёт и консольная утилита aws fis. Если сработает метрика CloudWatch, FIS сразу прервёт тест. Остановленный эксперимент нельзя возобновить: придётся создавать новый запуск из шаблона.

Перед стартом важно проверить типы виртуальных машин. Для сетевых сбоев и манипуляций с EBS сервис требует инстансы Nitro или работающий SSM Agent. Если выборка ресурсов вернёт ноль целей, запуск сразу завершится ошибкой.

Какие задачи решает

  • смоделировать отключение питания зоны доступности в AWS
  • составить шаблон эксперимента FIS с условиями остановки
  • протестировать устойчивость сервиса к сетевым задержкам и потере пакетов
  • проверить реакцию кластера EKS на отказ подов или узлов

Примеры запросов агенту

  • Помоги составить шаблон AWS FIS для симуляции отключения зоны доступности
  • Сгенерируй команду CLI для запуска стресс-теста CPU на инстансах EC2 через FIS
  • Как настроить stop condition в FIS на основе аварийного сигнала CloudWatch?

Как установить aws-fault-injection-service

1Через Skills CLI (Vercel)

npx skills add aws/agent-toolkit-for-aws --skill aws-fault-injection-service -a claude-code

2Вручную: положить файлы

~/.claude/skills/aws-fault-injection-service/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/aws-fault-injection-service/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о aws-fault-injection-service

Как установить aws-fault-injection-service в Claude Code?

Для установки скилла в Claude Code выполните команду npx skills add aws/agent-toolkit-for-aws --skill aws-fault-injection-service -a claude-code.

Что делает aws-fault-injection-service?

Скилл помогает планировать, создавать и контролировать эксперименты хаос-инжиниринга в AWS FIS. Он формирует шаблоны с ресурсами-мишенями, параметрами сбоев и метриками для экстренной остановки.

Какие требования предъявляются к инстансам для стресс-тестов сети и дисков?

Для ряда сценариев FIS, включая инъекцию сетевых сбоев и нагрузку на EBS, требуются инстансы на архитектуре Nitro или установленный SSM Agent. Также учтите, что эксперимент завершится ошибкой, если фильтр не найдёт ни одного ресурса-мишени.

Исходный текст

SKILL.md · Apache-2.0
---
name: aws-fault-injection-service
description: >
  Plans, builds, runs, and analyzes fault injection experiments with AWS Fault Injection Service
  (AWS FIS) to validate application resilience through chaos engineering. Covers experiment
  templates (actions, targets, stop conditions), the FIS actions catalog and action selection,
  the scenario library (AZ power interruption, cross-Region connectivity, EC2/EKS/EBS stress),
  experiment lifecycle and monitoring, logging and reports, multi-account experiments, the
  experiment IAM role, and blast-radius safety. Applies when a user mentions AWS FIS or fault
  injection, asks what experiment to run for a failure mode (AZ, Region, API errors/throttling,
  instance/pod/DB/cache failure, latency, packet loss), wants to author an experiment template or
  CLI/CloudFormation, or needs to safely run chaos experiments in pre-production or production.
  For the broader resilience program across Resilience Hub and ARC, see aws-resilience-lifecycle;
  for ARC routing controls and zonal shift, see recovery-controller-setup.
version: 1
---

# AWS Fault Injection Service (FIS) Experiments

## Overview

Domain expertise for AWS Fault Injection Service (AWS FIS) — a managed chaos-engineering
service that runs controlled fault injection experiments on real AWS resources so you can
observe how an application responds to disruption and improve its resilience.

This skill lets an agent do three things:

1. **Suggest the right experiment** — map a user's failure scenario or resilience question to
   the correct FIS action(s), scenario, or experiment design, and explain the trade-offs.
2. **Build and run experiments** — author experiment templates (actions, targets, stop
   conditions, logging, reports), wire up the experiment IAM role, and drive the run/monitor/stop
   lifecycle via CLI, SDK, or CloudFormation.
3. **Inform the user** — answer conceptual questions about FIS terminology, safety, pricing,
   supported services, and how FIS fits into a resilience program.

> **AWS FIS carries out real actions on real AWS resources.** Before running any experiment in
> production, plan it, run it first in pre-production, and always bound the blast radius with a
> stop condition. Treat fault injection as a privileged, potentially disruptive operation.
>
> The AWS MCP server is recommended for executing this skill's AWS API calls — it provides
> sandboxed execution and audit logging — but it is not required; all operations also work with
> the AWS CLI (`aws fis ...`) directly.

## Guardrail — where this skill's own files live (MCP vs local install)

Before reading a reference file, determine how this skill was loaded:

- **Loaded via the AWS MCP `retrieve_skill` tool:** the skill's reference files are not on the
  local filesystem. Fetch each one through `retrieve_skill` with the `file` parameter (e.g.
  `file="references/fis-concepts.md"`) — do NOT `file_read` these paths locally or search the
  filesystem for them.
- **Installed locally** (e.g. `.kiro/skills/aws-fault-injection-service/` or
  `~/.claude/skills/aws-fault-injection-service/`): read reference files from the local skill directory
  using the relative paths shown here.

This applies only to the skill's own reference files; always read and write user or session data
in the working directory, never through `retrieve_skill`.

## Start here — route the request

- **"What is FIS / when should I use it / what does X term mean / does it support Y?"** →
  read [references/fis-concepts.md](references/fis-concepts.md).
- **"What experiment/action should I run to test a failure mode?"** →
  read [references/fis-actions-reference.md](references/fis-actions-reference.md) (action
  selection map + full catalog) and suggest an action or scenario.
- **"Build / create / run an experiment"** (template, targets, stop conditions, logging,
  reports, scenarios, multi-account, monitoring) → follow
  [references/fis-workflow.md](references/fis-workflow.md) exactly.
- **Any AWS CLI or API command for FIS** → consult
  [references/fis-api-reference.md](references/fis-api-reference.md) FIRST — it is the canonical
  operation/parameter reference and includes a hallucination-rejection table.
- **IAM role, permissions, trust policy, confused-deputy, blast-radius safety** →
  read [references/fis-security.md](references/fis-security.md).

## API Reference (READ FIRST before producing any AWS CLI command)

The exact `aws fis` operation names and template parameters are documented in
[references/fis-api-reference.md](references/fis-api-reference.md), including a table mapping
common wrong API/action names to correct ones. **Always consult it before generating commands.**
Action IDs and resource types evolve — verify with `aws fis list-actions` and
`aws fis get-action --id <action-id>` rather than trusting memory.

## Suggesting experiments (behavioral contract)

When the user describes a failure they want to test rather than a command they want run:

1. Identify the **failure mode** (AZ impairment, Region isolation, API errors/throttling,
   compute/DB/cache loss, latency, packet loss, resource exhaustion).
2. Map it to a **scenario** (preferred when one fits — pre-built and AWS-owned) or a specific
   **action** using the selection map in
   [references/fis-actions-reference.md](references/fis-actions-reference.md).
3. State the **target** (resource type + how to scope it) and a **stop condition** (CloudWatch
   alarm on your steady-state metric) so the blast radius is bounded.
4. Recommend running in **pre-production first**, then production under change management.
5. Offer to generate the experiment template — then follow
   [references/fis-workflow.md](references/fis-workflow.md).

Do not invent action IDs, resource types, or parameters. If unsure, say so and verify with
`aws fis list-actions` / `aws fis get-action` or the FIS documentation.

## Troubleshooting

### "Experiment failed immediately / no targets found"

FIS resolves all targets at experiment start; if a target resolves to zero resources, the
experiment fails (unless `emptyTargetResolutionMode` is `skip`). Check tags, filters, region,
and account. Use a **target preview** before running (see workflow reference).

### "Action failed with a permissions error"

The FIS experiment IAM role is missing permissions for the underlying service API (or SSM, or
the confused-deputy trust conditions block the assume). See
[references/fis-security.md](references/fis-security.md).

### "Experiment stopped unexpectedly"

A stop condition (CloudWatch alarm) likely fired — this is the guardrail working. Check the
experiment's `state.reason` and the alarm history. A stopped experiment cannot be resumed; start
a new one from the template.

### "Nitro / instance-type errors on EBS or network faults"

Some actions require Nitro-based instances or the SSM Agent. Verify prerequisites per action in
[references/fis-actions-reference.md](references/fis-actions-reference.md).

## Observability companion

For the CloudWatch alarms, dashboards, and metrics that back FIS stop conditions and
experiment reports, recommend the **AWS Observability** skill for alarm/dashboard setup — keep
this skill's guidance to how those signals feed experiment safety and post-experiment analysis.

## Security Considerations

FIS runs real, potentially destructive actions. Key points (full guidance in
[references/fis-security.md](references/fis-security.md)):

- **Least privilege:** scope the experiment role to only the actions and target ARNs each
  experiment needs — never `*`. Scope the human/CI principals allowed to call
  `fis:StartExperiment`.
- **Confused-deputy protection:** the experiment role's trust policy MUST condition on
  `aws:SourceAccount` and `aws:SourceArn` (scoped to the experiment ARN pattern).
- **Bounded blast radius:** always attach a CloudWatch-alarm stop condition; start with narrow
  targets (`COUNT(1)` / low `PERCENT`) and pre-production before production.
- **No sensitive data in string fields:** experiment/template descriptions, tags, and logs
  surface in CloudTrail, CloudWatch Logs, S3 reports, and (multi-account) target-account Health
  dashboards — never embed PII, secrets, or sensitive architecture detail.
- **Encrypt logs/reports:** experiment logs and PDF reports reveal resilience posture —
  use SSE-KMS on the S3 buckets, enforce TLS, and consider S3 Object Lock on report buckets.
- **Further reading:** [FIS Security](https://docs.aws.amazon.com/fis/latest/userguide/security.html)
  and the [AWS Well-Architected Reliability Pillar](https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/).

© aws · Apache-2.0 · aws/agent-toolkit-for-aws

Похожие скиллы

Всё по теме «Облака: AWS, Azure, GCP» →
dt-obs-aws Dynatrace Помогает анализировать инфраструктуру AWS через Dynatrace Smartscape и запросы DQL: инвентарь ресурсов, топологию VPC и расходы на облако. CX Codex +1 2 500установок aws-cost-operations zxkane Скилл помогает оценивать бюджет перед деплоем, анализировать аномалии в расходах AWS и настраивать алерты CloudWatch. Пригодится при аудите облака и контроле счетов. CX Codex +1 863установок aws-ecs-fargate devops-skills Разворачивает контейнеры в Amazon ECS и Fargate. Помогает настроить описания задач, сервисы с балансировщиком нагрузки и автоматическое масштабирование. CX Codex +1 349установок aws-cloudtrail devops-skills Настраивает аудит CloudTrail во всех аккаунтах AWS организации и создаёт алерты на опасные события. Пригодится при подготовке к аудиту безопасности. CX Codex +1 340установок chaos-engineering kindlmann Скилл помогает планировать контролируемые сбои и тестировать надёжность системы по гипотезам. Пригодится при подготовке к game day или внедрении хаос-тестов в стейджинге. CX Codex +1 1 000установок aws-cost-optimize официальный github Разбирает IaC-файлы и живые ресурсы AWS, считает траты и заводит GitHub-issue на каждую находку. Пригодится, когда счёт за облако растёт, а непонятно почему. 68установок

Из того же набора133

threat-modeling-with-aws-security-agent Скилл запускает моделирование угроз по методологии STRIDE через AWS Security Agent, сравнивая проектную документацию с исходным кодом. CX Codex +1 1 600установок running-release-tests Запускает UI- и API-тесты релиза в AWS DevOps Agent по готовому тест-профилю. Пригодится перед выкаткой, когда нужно проверить сценарии и регрессии. CX Codex +1 1 400установок aws-well-architected-review Проводит ревью рабочей нагрузки по AWS Well-Architected Framework: читает код и IaC, сверяет с живой документацией AWS и выдаёт отчёт с приоритетами. CX Codex +1 1 400установок amazon-neptune Помогает настраивать кластеры Amazon Neptune Database и графы Neptune Analytics для задач GraphRAG, аналитики связей и антифрода. Требует подтверждения перед изменением ресурсов. CX Codex +1 1 400установок amazon-eventbridge-event-bus Скилл для сборки и отладки приложений на новых кастомных шинах событий EventBridge. Пригодится, когда события расходятся по подписчикам и что-то не доходит. CX Codex +1 1 000установок aws-marketplace-metering Скилл разворачивает и отлаживает usage-based метринг AWS Marketplace: SAM-пайплайн, ResolveCustomer, BatchMeterUsage, разбор записей и ошибок. CX Codex +1 983установок testing-mwaa-workflow Скилл запускает и проверяет пайплайны в Amazon MWAA до финального статуса. Он помогает протестировать Python DAG или Serverless-сценарий перед сдачей в работу. CX Codex +1 861установок agents-pay Настраивает оплату x402-защищённого контента агентом во время задачи и ограничивает расходы правилами и бюджетом сессии. CX Codex +1 809установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой