Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-4850

Config _cmd options should interpolate environment variables

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.10.4
    • Fix Version/s: None
    • Component/s: configuration

      Description

      When specifying a configuration like sql_alchemy_conn_cmd, it should be able to interpolate environment variables from the environment that airflow is running from.  This is really useful when you mount secrets as environment variables and want to use them in this type of configuration option.  For example, this currently does not work:

       

      `sql_alchemy_conn_cmd = echo ${POSTGRES_HOST}:${POSTGRES_PASSWORD}@postgres.com`

       

      The change is really simple, and I opened a PR for it.  https://github.com/apache/airflow/pull/5479

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmmotto George Miller
                Reporter:
                gmmotto George Miller
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: