

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Amazon Managed Workflows for Apache Airflow 的 Apache Airflow 版本
<a name="airflow-versions"></a>

本主題說明 Amazon Managed Workflows for Apache Airflow 支援的 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)
+ [Apache Airflow 版本支援和常見問答集](#airflow-versions-support)

## 關於 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 Managed Workflows for Apache Airflow 支援下列 Apache Airflow 版本。

**注意**  
自 2025 年 12 月 30 日起，Amazon MWAA 將終止對 Apache Airflow 版本 v2.4.3、v2.5.1 和 v2.6.3 的支援。如需詳細資訊，請參閱 [Apache Airflow 版本支援和常見問答集](#airflow-versions-support)。
從 Apache Airflow v2.2.2 開始，Amazon MWAA 支援直接在 Apache Airflow Web 伺服器上安裝 Python 需求、供應商套件和自訂外掛程式。
 從 Apache Airflow 2.7.2 版開始，您的需求檔案必須包含 `--constraint`陳述式。如果您未提供限制，Amazon MWAA 會為您指定一個，以確保您的需求中列出的套件與您正在使用的 Apache Airflow 版本相容。  
如需在需求檔案中設定限制的詳細資訊，請參閱[安裝 Python 相依性](working-dags-dependencies.md#working-dags-dependencies-syntax-create)。


| Apache Airflow 版本 | Apache Airflow 發行日期 | Amazon MWAA 可用性日期 | Apache Airflow 限制條件 | Python 版本 | 
| --- | --- | --- | --- | --- | 
|  [2.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/)  | 
|  [2.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/)  | 
|  [2.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/)  | 
|  [2.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 版本，以及每個版本的初始版本和end-of-support日期。如需遷移至較新版本的詳細資訊，請參閱 [Amazon MWAA 遷移指南](https://docs.aws.amazon.com/mwaa/latest/migrationguide/about-mwaa-migration.html)。


| Apache Airflow 版本 | Apache Airflow 發行日期 | Amazon MWAA 可用性日期 | Amazon MWAA end-of-support日期 | 
| --- | --- | --- | --- | 
| v1.10.12 | 2020 年 8 月 25 日 | 2020 年 11 月 24 日 | 2024 年 2 月 21 日 | 
| 2.0.2 版 | 2021 年 4 月 19 日 | 2021 年 5 月 25 日 | 2024 年 4 月 29 日 | 
| 2.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 日 | 

## Apache Airflow 版本支援和常見問答集
<a name="airflow-versions-support"></a>

根據 Apache Airflow 社群[發行程序和版本政策](https://airflow.apache.org/docs/apache-airflow/stable/release-process.html)，Amazon MWAA 致力於在任何指定時間支援至少三個次要版本的 Apache Airflow。我們將在支援結束日期前至少 180 天，宣布特定 Apache Airflow 次要版本的支援結束日期。

### 常見問答集
<a name="deprecation-faq"></a>

**問：Amazon MWAA 支援 Apache Airflow 版本多久？**  
答：Amazon MWAA 在第一次可用後支援 Apache Airflow 修補程式版本至少 12 個月。

**問：在 Amazon MWAA 上的 Apache Airflow 版本支援結束時，是否會通知我？**  
答案：是。如果您帳戶中的任何 Amazon MWAA 環境執行接近終止支援的版本，Amazon MWAA 會在 Health 儀板表 終止支援日期的 之前傳送通知。

**問：終止支援日期會發生什麼事？**  
答：在支援日期結束時，您無法再使用已棄用版本來建立新的 Amazon MWAA 環境。您可以繼續存取現有的 Amazon MWAA 環境，這些環境會執行相關聯、已棄用版本的 Apache Airflow，風險由您自行承擔。若要升級至 Amazon MWAA 上較新版本的 Apache Airflow，請參閱 [Amazon MWAA 遷移指南](https://docs.aws.amazon.com/mwaa/latest/migrationguide/index.html)。

**重要**  
您有責任將 Amazon MWAA 版本保持在最新狀態。 會 AWS 要求所有客戶將其 Amazon MWAA 環境升級至最新版本，以受益於最新的安全性、隱私權和可用性防護措施。如果您在過了棄用日期的不支援版本或軟體上操作環境，稱為*舊版*，您會面臨更大的安全、隱私權和操作風險，包括停機時間事件。透過在舊版上操作 Amazon MWAA 環境，您確認您了解並故意承擔這些風險，而且您同意盡快完成升級至最新版本。在舊版上繼續操作您的環境受制於規範您使用 AWS 服務的協議。  
舊版不會被視為正式提供，也 AWS 不再支援舊版。因此，如果 AWS 判斷舊版會對服務、 AWS其附屬公司或任何其他第三方構成安全或責任風險，或有傷害風險， AWS 可能會隨時限制任何舊版的存取或使用。您繼續在舊版上執行工作負載的決定可能會導致您的內容無法使用、損毀或無法復原。在舊版上執行的環境受限於服務水準協議 (SLA) 例外狀況。  
在舊版上執行的環境和相關軟體可能包含錯誤、錯誤、瑕疵和有害元件。因此，即使協議或服務條款中有任何相反的資訊， *仍會照原樣* AWS 提供舊版。  
如需 AWS共同責任模型的詳細資訊，請參閱 *AWS Well-Architected Framework* 中的[共同責任](https://docs.aws.amazon.com/wellarchitected/latest/security-pillar/shared-responsibility.html)。