Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Managed Service for Apache Airflow™
  • Getting started
    • All guides
      • Uploading DAG files to a cluster
      • Getting an IAM token
    • Working with Apache Airflow™ interfaces
  • Access management
  • Pricing policy
  • Terraform reference
  • Yandex Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • Importing DAG files from a bucket
  • Importing DAG files from a Git repository
  • Using additional scripts and modules
  1. Step-by-step guides
  2. Working with DAG files
  3. Uploading DAG files to a cluster

Uploading DAG files to a Managed Service for Apache Airflow™ cluster

Written by
Yandex Cloud
Updated at November 2, 2026
View in Markdown
  • Importing DAG files from a bucket
  • Importing DAG files from a Git repository
  • Using additional scripts and modules

A Managed Service for Apache Airflow™ cluster automatically loads DAG files from the configured source, such as the following:

  • Yandex Object Storage bucket
  • External Git repository

Prepare a DAG file. You can find an example in this Apache Airflow™ guide. If a DAG uses additional scripts or modules, configure their import.

Importing DAG files from a bucketImporting DAG files from a bucket

When creating or updating a cluster, select a bucket as the source of DAG files and configure the bucket access permissions for the cluster’s service account.

  1. Create a folder, e.g., dags, in the selected bucket and upload your DAG file to it. If the DAG uses additional scripts or modules, upload them along with the DAG.

    You can upload your DAG file to the bucket root, but it uploads quicker to a folder.

  2. Open the Apache Airflow™ web interface.

  3. Make sure that the new DAG has appeared in the DAGs section. It may take a few minutes to load a DAG file from the bucket.

Importing DAG files from a Git repositoryImporting DAG files from a Git repository

When creating or updating a cluster, select a Git repository as the source of DAG files. Specify the repository URL, branch, DAG files directory, and authentication parameters.

Warning

To use a Git repository, configure internet access through a NAT gateway from the Managed Service for Apache Airflow™ cluster network. When configuring it, link a NAT gateway route table to all the cluster subnets.

  1. Add the DAG file to the Git repository directory specified in the cluster settings. If the DAG uses additional scripts or modules, add them along with the DAG.
  2. Push your changes to the remote branch specified in the cluster settings. If you are working with a local repository copy, create a commit and push it to that branch.
  3. Open the Apache Airflow™ web interface.
  4. Make sure that the new DAG has appeared in the DAGs section. It may take a few minutes to import your DAG file from the Git repository.

Using additional scripts and modulesUsing additional scripts and modules

If a DAG uses additional scripts or modules, upload them along with the DAG file to the bucket or Git repository. In the DAG file, specify the full path to these scripts or modules. Let’s say, you have uploaded all files to the dags folder. In this case, specify the following in the from ... import construct:

from dags.<file_name> import <object>

Was the article helpful?

Previous
Storing Apache Airflow™ connections in Yandex Lockbox
Next
Getting an IAM token
© 2026 Direct Cursus Technology L.L.C.