SSH into the instance is not supported by MWAA. Part of the whole "managed" thing is that the instances are hidden from you by AWS.
You can do hacks like running stuff in BashOperator
but they will not work well. BashOperator
runs on whatever worker gets assigned that task, which is unpredictable. You can use BashOperator
to touch foo
, and then use it again to ls foo
, and you will see nothing because the first run was on a different worker than the second. There is not a practical way to use these hacks to actually install dependencies on Airflow.
MWAA allows you to provide a requirements.txt
file containing additional Python packages you want it to install. That's all you get.
If you need more advanced dependencies, I recommend you containerize your job, and then run it with something like DockerOperator
.