Apache Airflow v2 provider packages installed on Amazon MWAA environments - Amazon Managed Workflows for Apache Airflow

Apache Airflow v2 provider packages installed on Amazon MWAA environments

Amazon MWAA installs provider extras for Apache Airflow v2 and above connection types when you create a new environment. Installing provider packages allows you to view a connection type in the Apache Airflow UI. It also means you don't need to specify these packages as a Python dependency in your requirements.txt file. This page lists the Apache Airflow provider packages installed by Amazon MWAA for all Apache Airflow v2 environments.

Note

For Apache Airflow v2 and above, Amazon MWAA installs Watchtower version 2.0.1 after performing pip3 install -r requirements.txt, to ensure compatibility with CloudWatch logging is not overridden by other Python library installations.

Provider packages for Apache Airflow v2.2.2 connections

When you create an Amazon MWAA environment in Apache Airflow v2.2.2, Amazon MWAA installs the following provider packages used for Apache Airflow connections.

Provider packages for Apache Airflow v2.0.2 connections

When you create an Amazon MWAA environment in Apache Airflow v2.0.2, Amazon MWAA installs the following provider packages used for Apache Airflow connections.

Specifying newer provider packages

Apache Airflow constraints files, which we recommend using whenever you create a requirements.txt for your environment, specify the provider packages versions available at the time of that Apache Airflow release. In many cases, newer providers will be compatible with that version of Apache Airflow. Rather than omitting constraints altogether, which we do not recommend, it is possible to simply modify the constraints file for a specific provider version.

For example, to use Amazon provider package version 6.0.0 with Amazon MWAA and Apache Airflow v2.2.2, do the following:

  1. Download the version-specific constraints file from https://raw.githubusercontent.com/apache/airflow/constraints-2.2.2/constraints-3.7.txt

  2. Modify the apache-airflow-providers-amazon version in the constraints file from 2.4.0 to 6.0.0, and modify watchtower from 1.0.6 to 2.0.1, the latter due to the dependency listed on PyPI.

  3. Save the modified constraints file to the Amazon S3 dags folder of your Amazon MWAA environment, for example, as constraints-3.7-mod.txt

  4. Specify your requirements as shown in the following.

    --constraint "/usr/local/airflow/dags/constraints-3.7-mod.txt" apache-airflow-providers-amazon==6.0.0
Note

If you are using a private web server, we recommend you package the required libraries as WHL files by using the Amazon MWAA local-runner.