1 Answer
- Newest
- Most votes
- Most comments
0
Hi!
Anything placed in the S3 folder containing your DAGs will be synced to /usr/local/airflow/dags on the MWAA worker. So, to run a file called "hello_world.py" you would use the bash command "python3 /usr/local/airflow/dags/hello_world.py"
Thanks!
answered 3 years ago
Relevant content
- asked 2 months ago
- asked a year ago
- Accepted Answerasked 5 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago
I'm still getting the same error even after using bash command "python3 /usr/local/airflow/dags/hello_world.py"
Update: I got it clear, you just need to make sure you include subfolder names. Alternatively you can use the bash command "python3 ${AIRFLOW_HOME}/dags/folder1/folder2/../hello_world.py" Here, ${AIRFLOW_HOME} is /usr/local/airflow/