aws / aws-mwaa-local-runner

This repository provides a command line interface (CLI) utility that replicates an Amazon Managed Workflows for Apache Airflow (MWAA) environment locally.
MIT No Attribution
672 stars 683 forks source link

MWAA 2.7.2 - Loosen apache-airflow-providers-google in constraints.txt #346

Closed marlena-hammond closed 8 months ago

marlena-hammond commented 8 months ago

A bug was introduced into apache-airflow-providers-google==10.9.0. Can someone edit the constraints.txt to accept older versions of apache-airflow-providers-google like 10.8.0?

For local airflow, it is easy to remove the constraint command from the requirements.txt and edit the local ../docker/config/constraints.txt file. But, for MWAA 2.7.2 even if the requirements.txt references apache-airflow-providers-google==10.8.0 the constraints.txt is causing a conflict.

Screenshot 2024-01-08 at 8 03 24 PM

Edit constraints.txt line 131 apache-airflow-providers-google==10.9.0 to apache-airflow-providers-google<=10.9.0

marlena-hammond commented 8 months ago

used a custom constraints file and put the constraints file in the dag folder. Added --constraint "/usr/local/airflow/dags/constraints.txt" to the top of the requirements.txt