

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# Amazon MWAA 上的 Apache Airflow 版本
<a name="airflow-versions"></a>

本主题介绍 Amazon MWAA 支持的 Apache Airflow 版本，以及升级到最新版本的最佳实践。

**Topics**
+ [关于 Amazon MWAA 版本](#airflow-versions-image)
+ [最新版本](#airflow-versions-latest)
+ [Apache Airflow 版本](#airflow-versions-official)
+ [Apache Airflow 组件](#airflow-versions-components)
+ [升级 Apache Airflow 版本](#airflow-versions-upgrade)
+ [降级 Apache Airflow 版本](#airflow-versions-downgrade)
+ [Apache Airflow 已弃用版本](#airflow-versions-deprecation)

## 关于 Amazon MWAA 版本
<a name="airflow-versions-image"></a>

Amazon MWAA 构建的容器镜像将 Apache Airflow 版本与其他常见的二进制文件和 Python 库捆绑在一起。该镜像使用您指定的版本的 Apache Airflow 基础版安装。创建环境时，需要指定要使用的镜像版本。环境创建后会一直使用指定的镜像版本，直到您将其升级到更高版本。

## 最新版本
<a name="airflow-versions-latest"></a>

Amazon MWAA 支持多个 Apache Airflow 版本。如果您在创建环境时未指定镜像版本，则 Amazon MWAA 会使用支持的最新版本的 Apache Airflow 创建环境。

## Apache Airflow 版本
<a name="airflow-versions-official"></a>

Amazon MWAA 上支持以下 Apache Airflow 版本。

**注意**  
自 2025 年 12 月 30 日起，Amazon MWAA 将终止对 Apache Airflow 版本 v2.4.3、v2.5.1 和 v2.6.3 的支持。有关更多信息，请参阅[End-of-support 版本](#airflow-versions-eos)。
从 Apache Airflow v2.2.2 开始，Amazon MWAA 支持直接在 Apache Airflow Web 服务器上安装 Python 要求、提供程序包和自定义插件。
 从 Apache Airflow v2.7.2 开始，要求文件必须包含一条 `--constraint` 语句。如果您未提供约束条件，Amazon MWAA 将为您指定一个约束条件，以确保您的要求中列出的程序包与您正在使用的 Apache Airflow 版本兼容。  
有关在需求文件中设置约束条件的更多信息，请参阅[安装 Python 依赖项](working-dags-dependencies.md#working-dags-dependencies-syntax-create)。
亚马逊 MWAA 目前不支持[多团队模式。](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#multi-team)启用此功能与 Amazon MWAA 身份验证`CeleryExecutor`、和环境级密钥管理不兼容。


| Apache Airflow 版本 | Apache Airflow 发布日期 | Amazon MWAA 上市日期 | Apache Airflow 约束条件 | Python 版本 | 
| --- | --- | --- | --- | --- | 
| [v3.3.1 ](https://airflow.apache.org/docs/apache-airflow/3.3.1) | [2026年8月12日 ](https://airflow.apache.org/docs/apache-airflow/3.3.1/release_notes.html#airflow-3-3-1-2026-08-12) | 2026年9月1日 | [v3.3.1 约束文件 ](https://raw.githubusercontent.com/apache/airflow/constraints-3.3.1/constraints-3.12.txt) | [Python 3.12 ](https://peps.python.org/pep-0693/) | 
| [v3.2.1 ](https://airflow.apache.org/docs/apache-airflow/3.2.1) | [2026年4月22日 ](https://airflow.apache.org/docs/apache-airflow/3.2.1/release_notes.html#airflow-3-2-1-2026-04-22) | 2026 年 5 月 19 日 | [v3.2.1 约束文件 ](https://raw.githubusercontent.com/apache/airflow/constraints-3.2.1/constraints-3.12.txt) | [Python 3.12 ](https://peps.python.org/pep-0693/) | 
| [v2.11.2 ](https://airflow.apache.org/docs/apache-airflow/2.11.2) | [2026年3月14日 ](https://airflow.apache.org/docs/apache-airflow/2.11.2/release_notes.html#airflow-2-11-2-2026-03-14) | 2026 年 7 月 23 日 | [v2.11.2 约束文件 ](https://raw.githubusercontent.com/apache/airflow/constraints-2.11.2/constraints-3.12.txt) | [Python 3.12 ](https://peps.python.org/pep-0693/) | 
| [v2.11.0 ](https://airflow.apache.org/docs/apache-airflow/2.11.0) | [2025 年 5 月 20 日 ](https://airflow.apache.org/docs/apache-airflow/2.11.0/release_notes.html#airflow-2-11-0-2022-05-20) | 2026年1月7日 | [v2.11.0 约束文件 ](https://raw.githubusercontent.com/apache/airflow/constraints-2.11.0/constraints-3.12.txt) | [Python 3.12 ](https://peps.python.org/pep-0693/) | 
| [v3.0.6](https://airflow.apache.org/docs/apache-airflow/3.0.6) | [2025 年 8 月 29 日](https://airflow.apache.org/docs/apache-airflow/3.0.6/release_notes.html#airflow-3-0-6-2025-08-29) | 2025 年 10 月 1 日 | [v3.0.6 约束文件](https://raw.githubusercontent.com/apache/airflow/constraints-3.0.6/constraints-3.12.txt) | [Python 3.12 ](https://peps.python.org/pep-0693/) | 
| [v2.10.3](https://airflow.apache.org/docs/apache-airflow/2.10.3) | [2024 年 11 月 4 日](https://airflow.apache.org/docs/apache-airflow/2.10.3/release_notes.html#airflow-2-10-3-2024-11-04) | 2024 年 12 月 18 日 | [v2.10.3 约束文件](https://raw.githubusercontent.com/apache/airflow/constraints-2.10.3/constraints-3.11.txt) | [Python 3.11](https://peps.python.org/pep-0664/) | 
| [v2.10.1](https://airflow.apache.org/docs/apache-airflow/2.10.1) | [2024 年 9 月 5 日](https://airflow.apache.org/docs/apache-airflow/2.10.1/release_notes.html#airflow-2-10-1-2024-09-05) | 2024 年 9 月 26 日 | [v2.10.1 约束文件](https://raw.githubusercontent.com/apache/airflow/constraints-2.10.1/constraints-3.11.txt) | [Python 3.11](https://peps.python.org/pep-0664/) | 
| [v2.9.2](https://airflow.apache.org/docs/apache-airflow/2.9.2) | [2024 年 6 月 10 日](https://airflow.apache.org/docs/apache-airflow/2.10.1/release_notes.html#airflow-2-9-2-2024-06-10) | 2024 年 7 月 9 日 | [v2.9.2 约束文件](https://raw.githubusercontent.com/apache/airflow/constraints-2.9.2/constraints-3.11.txt) | [Python 3.11](https://peps.python.org/pep-0664/) | 
| [v2.8.1](https://airflow.apache.org/docs/apache-airflow/2.8.1) | [2024 年 1 月 19 日](https://airflow.apache.org/docs/apache-airflow/2.10.1/release_notes.html#airflow-2-8-1-2024-01-19) | 2024 年 2 月 23 日 | [v2.8.1 约束文件](https://raw.githubusercontent.com/apache/airflow/constraints-2.8.1/constraints-3.11.txt) | [Python 3.11](https://peps.python.org/pep-0664/) | 
| [v2.7.2](https://airflow.apache.org/docs/apache-airflow/2.7.2) | [2023 年 10 月 12 日](https://airflow.apache.org/docs/apache-airflow/2.10.1/release_notes.html#airflow-2-7-2-2023-10-12) | 2023 年 11 月 6 日 | [v2.7.2 约束文件](https://raw.githubusercontent.com/apache/airflow/constraints-2.7.2/constraints-3.11.txt) | [Python 3.11](https://peps.python.org/pep-0664/) | 

有关迁移自管理的 Apache Airflow 部署或迁移现有 Amazon MWAA 环境的更多信息，包括备份元数据数据库的说明，请参阅 [Amazon MWAA 迁移指南](https://docs.aws.amazon.com/mwaa/latest/migrationguide/index.html)。

## Apache Airflow 组件
<a name="airflow-versions-components"></a>

本节描述了 Amazon MWAA 上每个 Apache Airflow 版本可用的 Apache Airflow 计划程序和工作线程的数量，并提供了 Apache Airflow 的关键功能列表，指出了支持每项功能的版本。

### 调度器
<a name="airflow-versions-components-schedulers"></a>

Apache Airflow v2 及更高版本的计划程序：


| 计划程序（默认值） | 计划程序（最小值） | 计划程序（最大值） | 
| --- | --- | --- | 
| 2 | 2 | 5 | 

### 工作线程
<a name="airflow-versions-components-workers"></a>

Apache Airflow v2 及更高版本的工作线程：


| 工作线程（默认值） | 工作线程（最小值） | 工作线程（最大值） | 
| --- | --- | --- | 
| 10 | 1 | 25 | 

## 升级 Apache Airflow 版本
<a name="airflow-versions-upgrade"></a>

 Amazon MWAA 支持次要版本升级。这意味着您可以将环境从版本 `x.1.z` 升级到 `x.2.z`，但不能升级到新的主要版本，例如，从 `1.y.z` 升级到 `2.y.z`。

有关更多信息以及关于更新工作流程资源和将环境升级到新版本的详细说明，请参阅 [更改 Apache Airflow 版本](upgrading-environment.md)。

## 降级 Apache Airflow 版本
<a name="airflow-versions-downgrade"></a>

 Amazon MWAA 支持将次要版本降级到在降级时仍受支持的较早版本。这意味着您可以将环境从版本 `x.2.z` 降级到 `x.1.z`，但不能降级到以前的主要版本，例如，从 `2.y.z` 降级到 `1.y.z`。

有关更多信息以及关于更新工作流程资源和将环境升级到新版本的详细说明，请参阅 [更改 Apache Airflow 版本](upgrading-environment.md)。

## Apache Airflow 已弃用版本
<a name="airflow-versions-deprecation"></a>

下表列出了 Amazon MWAA 中已弃用的 Apache Airflow 版本，以及每个版本的初始发布日期和支持终止日期。有关迁移到更新版本的更多信息，请参阅 [Amazon MWAA 迁移指南](https://docs.aws.amazon.com/mwaa/latest/migrationguide/about-mwaa-migration.html)。


| Apache Airflow 版本 | Apache Airflow 发布日期 | Amazon MWAA 上市日期 | Amazon MWAA 支持终止日期 | 
| --- | --- | --- | --- | 
| v1.10.12 | 2020 年 8 月 25 日 | 2020 年 11 月 24 日 | 2024 年 2 月 21 日 | 
| v2.0.2 | 2021 年 4 月 19 日 | 2021 年 5 月 25 日 | 2024 年 4 月 29 日 | 
| v2.2.2 | 2021 年 11 月 15 日 | 2022 年 1 月 27 日 | 2024 年 6 月 27 日 | 
| v2.4.3 | 2022 年 11 月 14 日 | 2023 年 1 月 5 日 | 2025 年 12 月 30 日 | 
| v2.5.1 | 2023 年 1 月 20 日 | 2023 年 4 月 11 日 | 2025 年 12 月 30 日 | 
| v2.6.3 | 2023 年 7 月 10 日 | 2023 年 8 月 9 日 | 2025 年 12 月 30 日 | 

### End-of-support 版本
<a name="airflow-versions-eos"></a>

我们遵循Apache Airflow网站[上的Apache Airflow社区](https://airflow.apache.org/docs/apache-airflow/stable/release-process.html)发布流程和版本政策。我们承诺在任何给定时间至少支持三个次要版本。Apache Airflow我们将至少提前 180 天宣布终止支持日期。这适用于每个Apache Airflow次要版本。

我们承诺在Apache Airflow版本首次发布后的至少 12 个月内提供支持。

如果您的账户中有任何 Amazon MWAA 环境运行该版本的支持接近尾声，我们会通过运行状况控制面板发送通知，告知支持结束日期。

在支持日期结束时：
+ 您不能再使用过时的版本来创建新的亚马逊 MWAA 环境。
+ 您无法再将现有环境升级或降级到过时的版本。
+ 您仍然可以在过时的版本上使用现有环境并执行就地更新。
+ 对于在过时版本上运行的环境，您将无法再获得技术支持。

您可以继续访问运行相关过时版本的现有 Amazon MWAA 环境，风险自Apache Airflow负。有关升级到更新版本的说明Apache Airflow，请参阅 [ Amazon MWAA 迁移指南。](https://docs.aws.amazon.com/mwaa/latest/migrationguide/about-mwaa-migration.html)

**重要**  
您有责任使您的亚马逊 MWAA 版本保持最新状态。我们强烈建议您升级到最新版本，以保障当前的安全、隐私和可用性。在弃用日期之后运行（在 “旧版本” 上）会增加安全性、隐私和运营风险，包括停机时间。继续使用旧版本即表示您承认这些风险并同意尽快升级。  
旧版本目前尚不可用，我们不再支持它们。如果存在安全或责任风险，我们可能会随时限制对任何旧版本的访问。继续使用旧版本可能会导致您的内容不可用、损坏或无法恢复。SLA 例外情况适用。  
旧版环境和相关软件可能包含错误、错误、缺陷和有害组件。尽管您的协议中有任何相反的条款，我们仍按原样提供旧版本。  
有关分担责任的更多信息，请参阅*AWS Well-Architected 框架[中的](https://docs.aws.amazon.com/wellarchitected/latest/security-pillar/shared-responsibility.html)共担责任*。