-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Hi,
I would like to solve
https://stackoverflow.com/questions/72726969/how-can-we-use-airflow-code-editor-or-simple-dag-editor-on-aws-airflow-mwaa/73454971#73454971
I follow every Andrea instruction but it doesn't work.
I will post more info here to help
Our configuration :
MWAA airflow version is 2.2.2
To setup airflow-code-editor :
I added the code_editor.mount envariable in MWAA (name=dags,path=s3://our_bucket)
I added this to my requirements
# plugins
black # for airflow-code-editor
fs-s3fs # for airflow-code-editor
airflow-code-editor>=7.0.0
MWAA has been tested with s3:* on * permissions
What works:
airflow-code-editor is accessible
in the "files" folder we fine our dags
in the "dags" folder we fine our dags
reading dags
What doesn't work:
upload does nothing
+new open an editor, the button save make the following error
Error saving dag/new file.txt: operation failed, [Errno 30] Read-only file system: b'/usr/local/airflow/dags/'
opening a dags and clicking save
Error saving tutorial_dag_from_airflow.py: operation failed, [Errno 30] Read-only file system: b'/usr/local/airflow/dags/tutorial_dag_from_airflow.py'
What I can do to help
I would take me a bit of time to anonymize but I could provide the terraform code to reproduce
I also can write PR with a bit of guidance for where to search the bug
Thanks
Regards
Hugo