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

arc-region-switch — скилл для Claude Code: ARC Region switch

Скилл объясняет агенту, как устроен ARC Region switch: планы, воркфлоу, блоки выполнения и переключение между регионами AWS.

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

Что делает arc-region-switch

Скилл превращает агента в справочник по Amazon Application Recovery Controller Region switch. Он разбирает архитектуру: планы, дочерние планы, воркфлоу, шаги, блоки выполнения, триггеры на основе CloudWatch-алларамов и пост-рекавери-воркфлоу. Спрашивать можно про отказоустойчивость active/active и active/passive, кросс-аккаунтную поддержку, время восстановления и дешборды.

Внутри есть жёсткие оговорки, которые агент держит в голове. Region switch оркестрирует восстановление уже развёрнутой мультирегиональной архитектуры, но не создаёт её и не настраивает репликацию данных. Шаги, которые уже стартовали, обратно не откатить — можно поставить выполнение на паузу или отменить его, но начатый шаг потребует нового запуска плана. При деактивации региона start-plan-execution вызывается из здорового региона.

Скилл отвечает из встроенной базы знаний, а если её не хватает — идёт в docs.aws.amazon.com. Ссылочные файлы скилла лежат отдельно от локальной папки, если скилл подгружен через retrieve_skill у AWS MCP-сервера: тогда их надо запрашивать тем же инструментом с параметром file, а не читать с диска.

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

  • разобрать, из чего состоит план Region switch и как связаны воркфлоу и шаги
  • выбрать между active/active и active/passive для мультирегионального приложения
  • объяснить заказчику, зачем нужен Region switch и чего он не делает
  • проверить порядок вызова start-plan-execution при активации и деактивации региона
  • подготовить ответ на вопрос про восстановление после сбоя в одном из регионов

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

  • Объясни, как устроен план Region switch и когда запускается пост-рекавери-воркфлоу
  • Чем active/active отличается от active/passive в ARC Region switch и какие воркфлоу нужны в каждом случае
  • Из какого региона вызывать start-plan-execution, если мы гасим регион us-east-1

Как установить arc-region-switch

1Через Skills CLI (Vercel)

npx skills add aws/agent-toolkit-for-aws --skill arc-region-switch -a claude-code

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

~/.claude/skills/arc-region-switch/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/arc-region-switch/

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

Вопросы о arc-region-switch

Как установить arc-region-switch в Claude Code?

Выполните npx skills add aws/agent-toolkit-for-aws --skill arc-region-switch -a claude-code. После установки скилл лежит в ~/.claude/skills/arc-region-switch/SKILL.md.

Что делает arc-region-switch?

Отвечает на вопросы про Amazon Application Recovery Controller Region switch: архитектуру, планы, блоки выполнения, триггеры, режимы active/active и active/passive, кросс-аккаунтную поддержку и дешборды.

Для чего Region switch не подходит?

Для отказоустойчивости внутри одного региона через зоны доступности и для настройки репликации данных. Region switch только переключает уже существующие реплики и ресурсы между регионами.

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

SKILL.md · Apache-2.0
---
name: arc-region-switch
description: "Answers questions about Amazon Application Recovery Controller (ARC) Region switch including architecture, plans, execution blocks, workflows, triggers, active/active vs active/passive, cross-account support, recovery time, dashboards, and customer positioning. Applicable when users ask about ARC Region switch adoption, design, or troubleshooting."
version: 1
---

# ARC Region switch Expert

## Overview

Makes the agent an expert on **Amazon Application Recovery Controller (ARC) Region switch** — the feature for orchestrating cross-Region workload failover and switchover. Supports technical questions, customer positioning, and SA engagement preparation.

Region switch orchestrates recovery for applications already deployed multi-Region. It does not create multi-Region architecture or handle data replication — it orchestrates failover of existing replicas and resources.

## 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/positioning.md"` or `file="references/doc-links.md"`) — do NOT `file_read` these paths locally or search the filesystem for them.
- **Installed locally** (e.g. `.kiro/skills/arc-region-switch/` or `~/.claude/skills/arc-region-switch/`): 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`.

## When Not to Use

- **In-Region failover** — Region switch is for cross-Region recovery only. Use AZ-level mechanisms (ALB, Auto Scaling) for in-Region resilience.
- **Data replication design** — Region switch orchestrates failover of existing replicas; it does not set up or manage replication. Use Aurora Global Database, DynamoDB Global Tables, S3 Cross-Region Replication, etc.
- **AZ-level resiliency** — For Availability Zone failures within a single Region, use multi-AZ architecture patterns instead.

## Terminology Constraints

- ALWAYS use "Region switch" (lowercase 's') for the product name
- Use "Routing Controls" only when referring to the Routing Controls execution block or the legacy cluster-based approach — do not use it as a synonym for Region switch
- Do NOT conflate **triggers** (CloudWatch alarms that start execution) with **application health alarms** (measure actual recovery time)
- Region switch orchestrates failover — it does NOT replicate data

## Critical Warnings

- **Irreversible in-progress steps**: Plan executions can be paused or cancelled, but any step that is already started cannot be reversed without another plan execution.
- **Monitor during events**: Customers should still monitor their application health during an event, even if they configure plan triggers to automatically start a plan execution.
- **Regional endpoint matters**: When deactivating a Region, call `start-plan-execution` from the healthy Region, not the Region being deactivated. When activating a Region, call from the Region being activated. See [StartPlanExecution API](https://docs.aws.amazon.com/arc-region-switch/latest/api/API_StartPlanExecution.html).

## Workflow

1. Classify the question: technical architecture, customer positioning, how-to, troubleshooting, or comparison
2. Answer from embedded knowledge in this skill
3. If the knowledge base is insufficient, search official AWS documentation (`docs.aws.amazon.com`)
4. Format the response for the audience (engineer, SA, customer)

Always validate:

- Correct terminology (Region switch, not routing controls for plan-based features)
- Include doc links where helpful (see Documentation Links section)
- Use positioning language from the Positioning section

## Architecture

### Components

| Component | Description |
|-----------|-------------|
| **Plan** | Top-level resource scoped to a multi-Region application. Contains workflows. |
| **Child Plan** | A self-contained plan nested within a parent plan (one level deep). |
| **Workflow** | Ordered sequence of steps within a plan. Defines activation/deactivation logic. |
| **Step** | Container for one or more execution blocks, run in parallel or sequence. |
| **Execution Block** | Performs a specific recovery action (e.g., scale up, reroute traffic, failover DB). |
| **Trigger** | CloudWatch alarm-based automation that initiates plan execution. |
| **Application Health Alarms** | CloudWatch alarms indicating app health per Region; used to calculate actual recovery time. |
| **Post-recovery Workflow** | Optional workflow that runs after recovery to prepare for future events. |
| **Plan Evaluation** | Automated checks verifying plan execution readiness. Verifies IAM permissions, resource existence and configuration, capacity, etc. |
| **Automatic Execution Reports** | PDF reports delivered to S3 after each plan execution for compliance/audit. |

### Execution Modes

Recommend using graceful execution unless not possible (e.g., when an execution block has a dependency on the impaired Region — such as Aurora/DocumentDB/Neptune switchover requiring connectivity to the impaired Region, or a Custom Action Lambda deployed in the impaired Region).

- **Graceful**: Runs all steps in orderly sequence. Preferred for planned switchovers, DR tests, and any scenario where the source Region is still healthy.
- **Ungraceful**: Skips or modifies certain execution blocks — only critical steps run. Use only when the source Region is impaired and graceful execution is not possible.
- **Post-recovery**: Runs after successful recovery in the previously-impaired Region. Requires both Regions to be healthy. Supports a subset of execution blocks — see the [Add execution blocks](https://docs.aws.amazon.com/r53recovery/latest/dg/working-with-rs-execution-blocks.html) documentation for the current set.

### Active/Passive vs Active/Active

| Approach | Workflows Needed | Behavior |
|----------|-----------------|----------|
| **Active/Passive** | 1 activation workflow (either Region) OR 2 separate activation workflows (one per Region) | Failover from primary to standby; failback when primary recovers |
| **Active/Active** | 1 activation workflow + 1 deactivation workflow per Region | Shift-away from impaired Region + return when healthy |

### Supported Execution Blocks

Execution blocks are the individual step types a Region switch workflow is composed of — each performs one recovery action, spanning traffic/DNS rerouting, compute scaling, database failover, custom-action Lambdas, manual-approval gates, and nested child plans.

**Do not rely on a hardcoded list of block types** — ARC adds and changes execution blocks over time. Retrieve the current supported set at query time from the [Components & concepts](https://docs.aws.amazon.com/r53recovery/latest/dg/components-rs.html) and [Add execution blocks](https://docs.aws.amazon.com/r53recovery/latest/dg/working-with-rs-execution-blocks.html) documentation.

### Recovery Time Tracking

- **Recovery Time Objective (RTO)**: Set when creating a plan
- **Actual Recovery Time**: Plan execution time + time for application health alarms to return to green
- Visible on plan execution details page for comparison against RTO

### Plan Evaluation

- Validates: IAM permissions, resource configurations, running capacity
- Warnings surfaced in console, EventBridge, and API
- Passing evaluation alone is NOT sufficient — always test by executing plans

### Automatic Execution Reports

- PDF reports generated after each plan execution
- Delivered to customer-specified S3 bucket (within ~30 min)
- Customers must configure the S3 bucket and update permissions for the PlanExecutionRole to enable reporting
- Contents: executive summary, plan config, execution timeline, resource states, alarm history, child plan details, glossary
- Useful for regulatory compliance and DR audit evidence
- See Security Considerations for encryption and access control guidance

## Cross-Account Support

Plans can orchestrate resources across multiple AWS accounts via IAM roles with cross-account trust policies. This is a key enterprise differentiator — always mention it for large customers.

When configuring cross-account trust policies:

- Include condition keys (`aws:SourceArn`, `aws:SourceAccount`, `sts:ExternalId`) to prevent confused deputy attacks
- Scope IAM policies to least privilege — avoid `*` resource wildcards and `FullAccess` managed policies
- Scope permissions to only the specific resources (ASG ARNs, Aurora cluster ARNs, Route 53 health check ARNs, etc.) referenced in execution blocks

## Regional Availability

Available in multiple commercial AWS Regions and AWS GovCloud (US) Regions — always verify the current list before stating availability to a customer, as Region coverage changes over time. Each Region has its own data-plane endpoint (`arc-region-switch.<region>.api.aws`), ensuring execution doesn't depend on the impaired Region.

> Verify the complete list of available regions/endpoints at [AWS Regions & endpoints](https://docs.aws.amazon.com/r53recovery/latest/dg/aws-regions-rs.html).

## Security Considerations

### IAM Least Privilege

- Scope cross-account IAM roles to only the specific resources referenced in execution blocks (ASG ARNs, Aurora cluster ARNs, Route 53 health check ARNs, Lambda function ARNs, etc.)
- Avoid `*` resource wildcards and `FullAccess` managed policies
- Include condition keys (`aws:SourceArn`, `aws:SourceAccount`, `sts:ExternalId`) in cross-account trust policies to prevent confused deputy attacks

### Execution Reports S3 Bucket

- Enable default encryption (SSE-KMS preferred) on the reports S3 bucket
- Add a bucket policy denying requests where `aws:SecureTransport` is `false` (enforce TLS)
- Restrict bucket access to authorized personnel only — reports contain sensitive infrastructure details (plan config, execution timeline, resource states, alarm history)
- Enable S3 bucket versioning and MFA Delete for tamper protection
- Ensure the bucket is not publicly accessible

### Custom Action Lambda Security

- Apply least-privilege execution roles to Custom Action Lambda functions
- Validate inputs within Lambda functions
- Do not embed secrets in Lambda environment variables — use Secrets Manager or Parameter Store

### Notification & Event Targets

- Restrict EventBridge rule targets (SNS topics, Lambda functions, etc.) that receive plan-evaluation warnings and execution events to authorized recipients only
- Lock down SNS topic subscription policies and Lambda resource policies so sensitive infrastructure details (plan configuration, resource ARNs, execution state) are not exposed to unauthorized parties

### Logging and Monitoring

- Enable AWS CloudTrail for auditing all ARC Region switch API calls
- Configure CloudWatch alarms for unexpected or unauthorized plan executions
- Enable S3 access logging on the execution reports bucket
- See [Logging and monitoring for Region switch](https://docs.aws.amazon.com/r53recovery/latest/dg/logging-and-monitoring-rs.html)

## Positioning

Customer-facing framing, the Region switch vs Routing Controls comparison, analyst talking
points, and per-audience conversation guidance are maintained in
**[Positioning](references/positioning.md)**. Load that reference for any customer-positioning,
competitive-comparison, or analyst-briefing question. Key rules that always apply:

- Use "Region switch" (plan-based orchestration) framing; do NOT present legacy "routing controls"
  / "ARC clusters" language as the Region switch (plan-based) approach.
- Always mention **cross-account** support and **data-plane-per-Region** isolation for enterprise customers.

## Documentation Links

The curated documentation index and the "when to link which doc" guidance live in
**[Documentation Links](references/doc-links.md)**. Load that reference to attach the right AWS
doc to an answer (overview, components & concepts, execution blocks, API/CLI, security & IAM,
logging & monitoring, quotas, Terraform provider).

## Troubleshooting

### Customer confuses triggers with health alarms
Triggers are CloudWatch alarms that **start** plan execution. Application health alarms **measure** when recovery is complete. They serve different purposes and are configured separately.

### Customer assumes Region switch handles data sync
Clarify: Region switch orchestrates failover of existing replicas (e.g., Aurora Global DB promotion). The customer must set up multi-Region data replication independently.

### Cross-account execution fails
Usually missing IAM permissions. Verify: cross-account trust policy includes condition keys (`aws:SourceArn`, `aws:SourceAccount`, `sts:ExternalId`), target IAM role ARN is correct, and permissions are scoped to the specific resources in the execution blocks.

### Plan evaluation warnings
Warnings indicate IAM, resource, or capacity issues. Fix the underlying issue — but note that passing evaluation alone isn't sufficient; always test by executing plans.

### Wrong Regional endpoint used
When deactivating a Region, `start-plan-execution` MUST be called from the healthy Region. When activating a Region, it MUST be called from the Region being activated. Using the wrong endpoint will fail or produce unexpected behavior. See [StartPlanExecution API](https://docs.aws.amazon.com/arc-region-switch/latest/api/API_StartPlanExecution.html).

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

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

Всё по теме «Облака: AWS, Azure, GCP» →
caveman-manage JuliusBrussee Проверяет состояние и результаты экспериментов Caveman Cloud, предлагает одно действие или блокирует рискованный запрос. Нужен перед запуском, одобрением, отменой или откатом. CX Codex +1 104 200установок workers-best-practices cloudflare Скилл настраивает ИИ на проверку продакшен-кода Cloudflare Workers по актуальным правилам рантайма, типам Wrangler и антипаттернам. CX Codex +1 126 100установок cloudflare-email-service cloudflare Скилл для работы с Cloudflare Email Sending и Email Routing: помогает настроить отправку и приём писем в Workers. CX Codex +1 102 300установок firebase-basics официальный google Скилл настраивает Firebase CLI, помогает войти в аккаунт, создать или выбрать проект и скачать конфигурацию Android или iOS. CX Codex 14 100установок cloudflare-one cloudflare Помогает агенту проектировать, настраивать и разбирать развёртывания Cloudflare One Zero Trust и SASE. Пригодится, когда нужно спланировать Access, Gateway или туннели без похода в документацию вручную. CX Codex +1 93 100установок cloudflare-one-migrations cloudflare Помогает спланировать переход с VPN, SWG или SASE на Cloudflare One: сопоставляет политики, находит пробелы и расписывает порядок выката. CX Codex +1 89 500установок

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

aws-resilience-lifecycle Ведёт агента по циклу Define → Test → Operate в AWS: от политики Resilience Hub v2 до экспериментов FIS и контролов ARC. CX Codex +1 4 100установок transitgateway Настраивает AWS Transit Gateway для объединения десятков VPC и локальных сетей в единый хаб. Помогает сегментировать трафик таблицами маршрутизации и направить его через Network Firewall. CX Codex +1 4 100установок migrating-to-amazon-redshift Набор инструкций для переноса хранилища данных из Teradata в Amazon Redshift. Помогает оценить сложность проекта, переписать DDL, процедуры и выгрузить данные. CX Codex +1 3 900установок resilience-program-design Скилл помогает спроектировать программу отказоустойчивости: уровни политик, цели доступности, RTO/RPO, DR-подходы и график проверок. CX Codex +1 3 900установок shieldadvanced Настраивает AWS Shield Advanced для защиты ресурсов от DDoS-атак и возврата средств за трафик. Пригодится при подключении CloudFront, балансировщиков или защите на уровне L7. CX Codex +1 4 000установок recovery-controller-setup Настраивает AWS Application Recovery Controller: routing controls с safety rules для failover между регионами и zonal shift для восстановления после сбоя зоны доступности. CX Codex +1 3 900установок resilience-hub-multi-account Настраивает AWS Resilience Hub v2 для оценки устойчивости сервисов в нескольких аккаунтах AWS через cross-account роли IAM. CX Codex +1 3 800установок resilience-hub-failure-mode-assessment Скилл запускает и разбирает оценки режимов отказа в AWS Resilience Hub v2. Помогает расставить приоритеты находок и подготовить исправления. CX Codex +1 3 900установок

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

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