Airflow Providers and Integrations

Providers are add-on packages that connect Airflow to outside services such as Amazon Web Services, Google Cloud, Snowflake, and Slack. Each provider ships operators, hooks, sensors, and connection types for one service. Providers keep the core of Airflow small and let you install only what you need.

The Phone Apps Picture

A new phone comes with basic apps. You install a banking app for the bank, a maps app for navigation, and a music app for songs. Airflow works the same way. The core handles scheduling. Provider packages add the apps for each service.

 ┌───────────────────────────────┐
 │         Airflow core          │
 └───────┬───────────┬───────────┘
         │           │
   ┌─────▼────┐ ┌────▼─────┐ ┌──────────┐
   │ amazon   │ │ google   │ │ snowflake│  ... provider packages
   └──────────┘ └──────────┘ └──────────┘

Install a Provider

pip install apache-airflow-providers-amazon
pip install apache-airflow-providers-postgres
pip install apache-airflow-providers-slack

Restart the Airflow services after an install, so they load the new package. Check the result with this command:

airflow providers list

Popular Providers

PackageConnects To
apache-airflow-providers-amazonS3, Redshift, Glue, Lambda, and more
apache-airflow-providers-googleBigQuery, Cloud Storage, Dataflow
apache-airflow-providers-microsoft-azureBlob Storage, Data Factory, Synapse
apache-airflow-providers-snowflakeSnowflake data warehouse
apache-airflow-providers-postgresPostgreSQL databases
apache-airflow-providers-httpWeb APIs
apache-airflow-providers-dockerDocker containers
apache-airflow-providers-cncf-kubernetesKubernetes pods
apache-airflow-providers-slackSlack messages

What a Provider Contains

  • Operators: ready-made tasks, such as one that runs a BigQuery query.
  • Hooks: helpers that handle login and calls to the service.
  • Sensors: tasks that wait for events, such as a new S3 object.
  • Connection types: forms in the UI with the right fields for the service.

Step-by-Step Example: Copy a File from S3

  1. Install the Amazon provider.
  2. Open Admin, then Connections, and create a connection named aws_default with your access details.
  3. Use an operator or hook from the provider in a DAG.
from datetime import datetime
from airflow import DAG
from airflow.operators.python import PythonOperator
from airflow.providers.amazon.aws.hooks.s3 import S3Hook


def download_report():
    hook = S3Hook(aws_conn_id="aws_default")
    hook.download_file(
        key="reports/daily.csv",
        bucket_name="company-data",
        local_path="/tmp/",
    )


with DAG("s3_download", start_date=datetime(2024, 1, 1),
         schedule="@daily", catchup=False) as dag:

    download = PythonOperator(task_id="download", python_callable=download_report)

Operator or Hook?

ChoiceBest When
Provider operatorA ready-made task already does the job
Provider hook inside Python codeYou need custom logic around the call

Using a Provider Operator Directly

Many providers offer operators that need no custom code. A single operator can run a SQL statement on PostgreSQL, send a Slack message, or start a container. Pass the connection name and the settings, and Airflow handles login, calls, and error messages.

Connections Link Everything

 DAG task ──► Operator / Hook ──► Connection (saved login) ──► Outside service

Store credentials in the connection and never in the DAG file. A secrets backend such as a cloud secret manager adds more protection.

Finding the Right Provider

The official Airflow Provider Registry lists every package with its operators, hooks, and example DAGs. Search it by service name before you write any custom code.

Version Care

  • Providers release on their own schedule, separate from Airflow itself.
  • Each provider lists the Airflow versions it supports.
  • Pin provider versions in a requirements file, so every environment installs the same code.
  • Test upgrades in a staging setup before production.

Key Takeaways

  • Providers add operators, hooks, sensors, and connection types for outside services.
  • Install only the packages that your pipelines need.
  • Connections hold credentials and link hooks to services.
  • Pinned versions keep environments consistent.