airflow.secrets.environment_variables
Objects relating to sourcing connections from environment variables.
Attributes
Classes
Retrieves Connection object and Variable from environment variable. |
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.BaseSecretsBackendRetrieves Connection object and Variable from environment variable.
- get_conn_value(conn_id, team_name=None)[source]
Retrieve from Secrets Backend a string value representing the Connection object.
If the client your secrets backend uses already returns a python dict, you should override
get_connectioninstead.