Several weeks ago I faced that there is no simple way to use extra_index_url (pip) in MWAA. I had to make an experiment and maybe I found the solution.

I think that there are two main steps to fix this issue:

  1. add "pip.extra_index_url" : "YOUR_INDEX_URL" to the airflow configuration options
  2. use --extra-index-url ${AIRFLOW__PIP__EXTRA_INDEX_URL} param in your requirements.txt file.
mwaa pip extra index url landmark

Moiseenko_E_T, CC BY 4.0, via Wikimedia Commons