import

Definition

Import connections to Airflow from a file. This file can be the output of the Airflow export command.

The file type specified in the command must be JSON, YAML, or ENV, and will be automatically detected.

Usage

$ airflow connections import [-h] [--overwrite] [-v] file

Arguments

Parameter Description

file

Path to a file with the connections to import

--overwrite

Overwrite existing entries if a conflict occurs

-h, --help

Print out the help manual for this command

-v, --verbose

Make logging output more verbose

Examples

To import connections, which will overwrite the existing ones, from a file, run:

$ airflow connections import --overwrite /tmp/connections.json

Output example:

Imported connection airflow_db
Imported connection aws_default
Imported connection azure_batch_default
Imported connection azure_cosmos_default
Imported connection azure_data_explorer_default
Imported connection azure_data_lake_default
Imported connection azure_default
Imported connection cassandra_default
Imported connection databricks_default
Imported connection dingding_default
Imported connection drill_default
Imported connection druid_broker_default
Imported connection druid_ingest_default
Imported connection elasticsearch_default
Imported connection emr_default
Imported connection facebook_default
Imported connection fs_default
Imported connection ftp_default
Imported connection google_cloud_default
Imported connection hive_cli_default
Imported connection hiveserver2_default
Imported connection http_default
Imported connection impala_default
Imported connection kubernetes_default
Imported connection kylin_default
Imported connection leveldb_default
Imported connection livy_default
Imported connection local_mysql
Imported connection metastore_default
Imported connection mongo_default
Imported connection mssql_default
Imported connection mysql_default
Imported connection opsgenie_default
Imported connection oracle_default
Imported connection oss_default
Imported connection pig_cli_default
Imported connection pinot_admin_default
Imported connection pinot_broker_default
Imported connection postgres_default
Imported connection presto_default
Imported connection qubole_default
Imported connection redis_default
Imported connection redshift_default
Imported connection segment_default
Imported connection sftp_default
Imported connection spark_default
Imported connection sqlite_default
Imported connection sqoop_default
Imported connection ssh_default
Imported connection tableau_default
Imported connection tabular_default
Imported connection test_connection
Imported connection trino_default
Imported connection vertica_default
Imported connection wasb_default
Imported connection webhdfs_default
Imported connection yandexcloud_default
Found a mistake? Seleсt text and press Ctrl+Enter to report it