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★ 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+sleepuntil 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_skilltool: the skill is not on the local filesystem. Fetch each reference withretrieve_skilland thefileparameter (e.g.file="references/strategy-blue-green-fresh.md"). Do NOTfile_readthese 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-environmentuntil the user confirms the Phase 4 plan. - Every version jump requires its own confirmation: never run
aws mwaa update-environmentto 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-environmentand 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
- discovery-preflight.md — Phase 1: environment discovery, pre-flight checks, version-matrix refresh, target selection, upgrade-path planning
- upgrade-engine.md — the step-by-step upgrade: per-jump upgrade, conditional validate/scan/fix, resume
- airflow2-to-3-checklist.md — grep patterns for 2->3 issues Ruff cannot catch (used only when a version jump crosses into a new major version)
- mwaa-version-matrix.md — runtime-first version/Python/EOS matrix, version-jump rules, providers, unsupported features
- airflow2-to-3-quick-reference.md — 2->3 import/context/config mapping tables (used only when a version jump crosses into a new major version)
- python-stdlib-check.md — removed-standard-library check for version jumps that change the Python line (used only when a version jump is
python_change) - docker-validation.md — Phase 6
test-dagsprocedure (also used by the strategy Verify steps) - strategy-blue-green-fresh.md — New-environment upgrade (no history), including the Phase 8.1 batched switchover
- strategy-inplace-green-validated.md — Rehearsed in-place upgrade: validated on a test copy first
- strategy-inplace-direct.md — Direct in-place upgrade (unrecommended)
For deeper detail beyond embedded ref
Установить upgrading-mwaa-environments в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic