Skip to content

When passing environment variable which stores S3 connection string into Airflow, remote logging to S3 does not work #32067

Answered by potiuk
kimminw00 asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure if this is all (it might be problem with your encoding etc): https://airflow.apache.org/docs/apache-airflow/stable/howto/connection.html#storing-connections-in-environment-variables your connection env name has wrong name (too short) and does not match the connection name.

It shoudl be AIRFLOW_CONN_{CONN_ID} with all uppercase. I am also not sure what happens with the - in your s3-test-connection -> in most cases we are using _ in connection name so you might want to change it as well.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kimminw00
Comment options

@potiuk
Comment options

potiuk Jun 23, 2023
Collaborator

Answer selected by kimminw00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants