liveBook · Manning

Uri

As explained in Data Pipelines with Apache Airflow, Second Edition

A URI is a standardized string that identifies a resource by name, location, or other identifying information.

A URI is a standardized string that identifies a resource by name, location, or other identifying information. In Airflow, a connection can store its details in URI format, which Airflow parses into connection fields. section 16.5

A connection URI in a secrets backend

A secrets backend can store an Airflow connection under a path such as connections/secure_api. The stored secret must use the key conn_uri and contain the connection in URI format; an HttpOperator can then reference it with http_conn_id="secure_api" without embedding credentials in the DAG. section 16.5

Figure 16.21 Saving Airflow connection details in Vault requires setting a key: conn_uri.

Inspect the required conn_uri key used to save Airflow connection details in Vault. section 16.5

How Data Pipelines with Apache Airflow, Second Edition covers it

How deep it goes
Defines URI and explains its parsing into Airflow connection details, without detailing the URI grammar.
Examples
Uses a secure_api connection, a connections/secure_api secret path, and the required conn_uri key.
What you can do after
Operate/configure Airflow connections through URI-valued secrets retrieved from a configured secrets backend.
How it connects
Connects URIs with Airflow connections, secrets backends, HashiCorp Vault, and HTTP requests.

Also explained in

Compare how 9 books explain uri →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Pipelines with Apache Airflow, Second Edition. The section links point to the parts of the book it draws on.