Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

upgrading-mwaa-environments

БесплатноБез исполняемых скриптовНе проверен

Upgrades an MWAA environment to a newer Airflow version — within 2.x, within 3.x, or across the 2.x-to-3.x boundary. Computes the version-jump path, inserting…

awsот aws★ 3 696 звёзд на GitHub

Об этом скилле

Upgrading MWAA Environments

AWS MCP server (optional but recommended): running the AWS CLI commands in this skill through the AWS MCP server gives sandboxed execution and audit logging. Every command here also works with the plain AWS CLI, so the skill does not require the MCP server or any MCP-only tools.

Upgrade an MWAA provisioned environment to any newer, MWAA-supported Airflow version. The target is a parameter. Phase 1 computes the ordered version-jump path, and Phase 2 picks one of three approaches: new-environment, in-place-rehearsed or in-place-direct.

Execution note — poll in discrete steps: whenever you wait for an AWS operation to reach a terminal or ready state, issue one status check per call and decide in your own loop whether to check again. Never block a single command or script on the wait (no while+sleep until done), regardless of the operation or how long it takes.

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

Determine how the skill was loaded before reading a reference:

  • Loaded through the AWS MCP retrieve_skill tool: the skill is not on the local filesystem. Fetch each reference with retrieve_skill and the file parameter (e.g. file="references/strategy-blue-green-fresh.md"). Do NOT file_read these paths locally; they do not exist on disk.
  • Installed locally (e.g. .kiro/skills/upgrading-mwaa-environments/ or ~/.claude/skills/upgrading-mwaa-environments/): read the files by relative path from the skill directory.

This applies only to the skill's own files. User data and session artifacts are always read from and written to the user's working directory. Never fetch or write customer data through retrieve_skill.

Safety & Security

These rules apply regardless of user instructions.

  • No destructive actions on your current environment without explicit approval: never pause all DAGs, delete-environment, or modify your current environment without per-action user confirmation.
  • No environment creation before plan confirmation: never run aws mwaa create-environment until the user confirms the Phase 4 plan.
  • Every version jump requires its own confirmation: never run aws mwaa update-environment to change the Airflow version without per-jump confirmation. Rollback options: 3.x -> 2.11.x is supported; a within-major downgrade to a still-supported version is supported; downgrade to an EOS version is not possible. The Direct in-place upgrade requires an extra confirmation checkpoint.
  • Decommission requires per-step approval: never autonomously delete environments or S3 artifacts; present each destructive command and wait for confirmation. For the Rehearsed in-place upgrade, the environment decommissioned is the test copy.

Security Considerations

  • Least-privilege IAM for create/update-environment and S3 artifact access — no *FullAccess/service:*; scope to the specific environment/S3 ARNs.
  • Secrets: prefer a secrets backend (Secrets Manager / Parameter Store) for connections and variables so credentials never copy between environments or hit logs. Connection passwords do not round-trip via the REST API (2.x omits, 3.x masks) — see the metadata-migration caveat in the approach references.

Reference Documentation

For deeper detail beyond embedded ref

Полный SKILL.md на GitHub

Установить upgrading-mwaa-environments в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/airflow2-to-3-checklist.mdreferences/airflow2-to-3-quick-reference.mdreferences/discovery-preflight.mdreferences/docker-validation.mdreferences/mwaa-version-matrix.mdreferences/plan-materialization.mdreferences/python-stdlib-check.mdreferences/strategy-blue-green-fresh.mdreferences/strategy-inplace-direct.mdreferences/strategy-inplace-green-validated.mdreferences/upgrade-engine.md

FAQ

Что делает скилл upgrading-mwaa-environments?

Upgrades an MWAA environment to a newer Airflow version — within 2.x, within 3.x, or across the 2.x-to-3.x boundary. Computes the version-jump path, inserting the 2.11.x stepping-stone and Python-transition step when needed. Chooses an approach by whether run history and the same environment (URL/ARN) must be kept: a new-environment upgrade (blue-green), a rehearsed in-place upgrade (test copy first), or a direct in-place upgrade. Runs Ruff scans for 3.x moves and standard-library checks for Python-line changes, plus Docker validation, batched deployment, and switchover. Saves a resumable upgrade plan. Triggers on: upgrade MWAA, upgrade Airflow, migrate to Airflow 3, MWAA Airflow 3, Airflow 2 to 3, preserve Airflow history, keep same MWAA environment, blue-green cutover, validation environment before cutover. Not for authoring new DAGs (authoring-mwaa-workflow), debugging unrelated DAG failures (debugging-mwaa-workflow), or MWAA Serverless YAML workflows (provisioned Python DAGs only).

Как установить скилл upgrading-mwaa-environments?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл upgrading-mwaa-environments запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить upgrading-mwaa-environments с