I'm going to start using AWS-managed airflow. For the managed airflow to access the dags, I need to upload my code to the dags/ directory in an s3 bucket, and MWAA will pick it up.
However, in my codebase, I have codes in other directories, for example, the tasks/
directory. The problem is when I upload the tasks
folder to the s3 bucket mwaa doesn't pick them up, and I get import errors for my dag.
AWS documentation doesn't provide any guidance for this. I wonder if anyone has done this before? Or do I have to upload all of my code into the dags/
folder?