airflow.secrets.environment_variables

Objects relating to sourcing connections from environment variables

Module Contents

airflow.secrets.environment_variables.CONN_ENV_PREFIX = AIRFLOW_CONN_[source]
airflow.secrets.environment_variables.VAR_ENV_PREFIX = AIRFLOW_VAR_[source]
class airflow.secrets.environment_variables.EnvironmentVariablesBackend[source]

Bases: airflow.secrets.BaseSecretsBackend

Retrieves Connection object from environment variable.

get_conn_uri(self, conn_id)[source]
get_variable(self, key)[source]

Get Airflow Variable from Environment Variable

Parameters

key – Variable Key

Returns

Variable Value