Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • 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
      • Information about existing clusters
      • Creating a cluster
      • Updating a cluster
      • Updating Apache Airflow™ and Python versions
      • Stopping and restarting a cluster
      • Managing cluster access
      • Maintenance
      • Deleting a cluster
    • Working with Apache Airflow™ interfaces
  • Access management
  • Pricing policy
  • Terraform reference
  • Yandex Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Clusters
  3. Updating Apache Airflow™ and Python versions

Updating Apache Airflow™ and Python versions

Written by
Yandex Cloud
Updated at April 6, 2026

You can find the list of supported versions in the Versioning section.

When updating versions in Managed Service for Apache Airflow™, you can change the following:

  • Python version to any supported one for the current Apache Airflow™ version.

  • Apache Airflow™ version to the next supported version within the same branch: 2.X or 3.X.

    You cannot update Apache Airflow™ from 2.X to 3.X. To update to 3.X, create a new cluster and attach the old cluster's DAG storage to it.

Managed Service for Apache Airflow™ does not allow simultaneous updates of Apache Airflow™ and Python versions because user dependencies may stop working on newer Python versions.

For example, to update a cluster from Apache Airflow™ 2.8 and Python 3.8 to Apache Airflow™ 2.10 and Python 3.12:

  1. Update Python to 3.10 and test the cluster with its dependencies.
  2. Update Apache Airflow™ to 2.10 and test the cluster after you migrate the database.
  3. Update Python to 3.12 and test the dependencies again.

To learn about updates within the same version and host maintenance, see Maintenance.

Alert

Before the upgrade, make sure it will not affect your applications: review the release notes for Apache Airflow™ and Python.

Once your Apache Airflow™ version is upgraded, you cannot revert the cluster to the previous version.

Management console
CLI
Terraform
REST API
gRPC API

To upgrade your Apache Airflow™ or Python version:

  1. In the management console, navigate to the relevant folder.
  2. Navigate to the Managed Service for Apache Airflow™ service.
  3. In the cluster row, click and select Edit.
  4. In the Version field, select the Apache Airflow™ and Python version you need.
  5. Click Save.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id options.

To upgrade your Apache Airflow™ or Python version:

  1. Get the list of your Managed Service for Apache Airflow™ clusters:

    yc managed-airflow cluster list
    
  2. Get information about the cluster you need and check the version in the config.airflow_version and config.python_version properties:

    yc managed-airflow cluster get <cluster_name_or_ID>
    
  3. To upgrade your Apache Airflow™ version, run this command:

    yc managed-airflow cluster update <cluster_name_or_ID> \
      --airflow-version=<new_version_number>
    
  4. To upgrade your Python version, run this command:

    yc managed-airflow cluster update <cluster_name_or_ID> \
      --python-version=<new_version_number>
    

To upgrade your Apache Airflow™ or Python version:

  1. Open the current Terraform configuration file describing your infrastructure.

    For more on how to create this file, see Creating a cluster.

  2. Add the airflow_version or python_version parameter to the cluster description or update it if it is already there:

    resource "yandex_airflow_cluster" "<cluster_name>" {
      ...
      airflow_version = "<Apache_Airflow™_version>"
      python_version  = "<Python_version>"
    }
    
  3. Validate your configuration.

    1. In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.

    2. Run this command:

      terraform validate
      

      Terraform will show any errors found in your configuration files.

  4. Confirm updating the resources.

    1. Run this command to view the planned changes:

      terraform plan
      

      If you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.

    2. If everything looks correct, apply the changes:

      1. Run this command:

        terraform apply
        
      2. Confirm updating the resources.

      3. Wait for the operation to complete.

For more information, see this Terraform provider guide.

To upgrade your Apache Airflow™ or Python version:

  1. Get an IAM token for API authentication and put it into an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Call the Cluster.Update method and run the request, e.g., via cURL.

    Warning

    The API method will assign default values to all the parameters of the object you are modifying unless you explicitly provide them in your request. To avoid this, list the settings you want to change in the updateMask parameter as a single comma-separated string.

    • To upgrade your Apache Airflow™ version, run this request:

      curl \
          --request PATCH \
          --header "Authorization: Bearer $IAM_TOKEN" \
          --header "Content-Type: application/json" \
          --url 'https://airflow.api.cloud.yandex.net/managed-airflow/v1/clusters/<cluster_ID>' \
          --data '{
                    "updateMask": "airflowVersion",
                    "airflowVersion": "<Apache_Airflow™_version>"
                  }'
      

      Where:

      • updateMask: List of parameters to update. Specify only airflowVersion.

      • airflowVersion: Target Apache Airflow™ version.

      You can get the cluster ID with the list of clusters in the folder.

    • To upgrade your Python version, run this request:

      curl \
          --request PATCH \
          --header "Authorization: Bearer $IAM_TOKEN" \
          --header "Content-Type: application/json" \
          --url 'https://airflow.api.cloud.yandex.net/managed-airflow/v1/clusters/<cluster_ID>' \
          --data '{
                    "updateMask": "pythonVersion",
                    "pythonVersion": "<Python_version>"
                  }'
      

      Where:

      • updateMask: List of parameters to update. Specify only pythonVersion.

      • pythonVersion: Target Python version.

      You can get the cluster ID with the list of clusters in the folder.

  3. View the server response to make sure your request was successful.

To upgrade your Apache Airflow™ or Python version:

  1. Get an IAM token for API authentication and put it into an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Clone the cloudapi repository:

    cd ~/ && git clone --depth=1 https://github.com/yandex-cloud/cloudapi
    

    Below, we assume that the repository contents reside in the ~/cloudapi/ directory.

  3. Call the ClusterService/Update method, e.g., via the following gRPCurl request:

    Warning

    The API method will assign default values to all the parameters of the object you are modifying unless you explicitly provide them in your request. To avoid this, list the settings you want to change in the update_mask parameter as an array of paths[] strings.

    Format for listing settings
    "update_mask": {
        "paths": [
            "<setting_1>",
            "<setting_2>",
            ...
            "<setting_N>"
        ]
    }
    
    • To upgrade your Apache Airflow™ version, run this request:

      grpcurl \
          -format json \
          -import-path ~/cloudapi/ \
          -import-path ~/cloudapi/third_party/googleapis/ \
          -proto ~/cloudapi/yandex/cloud/airflow/v1/cluster_service.proto \
          -rpc-header "Authorization: Bearer $IAM_TOKEN" \
          -d '{
                "cluster_id": "<cluster_ID>",
                "update_mask": {
                  "paths": [
                    "airflow_version"
                  ]
                },
                "airflow_version": "<Apache_Airflow™_version>"
              }' \
          airflow.api.cloud.yandex.net:443 \
          yandex.cloud.airflow.v1.ClusterService.Update
      

      Where:

      • update_mask: List of parameters to update. Specify only airflow_version.

      • airflow_version: Target Apache Airflow™ version.

      You can get the cluster ID with the list of clusters in the folder.

    • To upgrade your Python version, run this request:

      grpcurl \
          -format json \
          -import-path ~/cloudapi/ \
          -import-path ~/cloudapi/third_party/googleapis/ \
          -proto ~/cloudapi/yandex/cloud/airflow/v1/cluster_service.proto \
          -rpc-header "Authorization: Bearer $IAM_TOKEN" \
          -d '{
                "cluster_id": "<cluster_ID>",
                "update_mask": {
                  "paths": [
                    "python_version"
                  ]
                },
                "python_version": "<Python_version>"
              }' \
          airflow.api.cloud.yandex.net:443 \
          yandex.cloud.airflow.v1.ClusterService.Update
      

      Where:

      • update_mask: List of parameters to update. Specify only python_version.

      • python_version: Target Python version.

      You can get the cluster ID with the list of clusters in the folder.

  4. Check the server response to make sure your request was successful.

ExamplesExamples

Let's assume you need to upgrade Apache Airflow™ from 2.10 to 2.11, and Python from 3.10 to 3.12.

CLI
Terraform
  1. To get a list of clusters with their IDs and names, run this command:

    yc managed-airflow cluster list
    
    +----------------------+------------+---------------------+--------+---------+
    |          ID          |    NAME    |     CREATED AT      | HEALTH | STATUS  |
    +----------------------+------------+---------------------+--------+---------+
    | c9qqhh2u3r20******** | airflow411 | 2026-02-26 15:39:33 | ALIVE  | RUNNING |
    +----------------------+------------+---------------------+--------+---------+
    
  2. To get information about the airflow411 cluster, run the following command:

    yc managed-airflow cluster get airflow411
    

    Result:

    id: c9qqhh2u3r20********
    ...
    config:
      ...
      airflow-version: "2.10"
      python-version: "3.10"
    
  3. To update Apache Airflow™ to version 2.11, run this command:

    yc managed-airflow cluster update airflow411 \
      --airflow-version=2.11
    

    Wait for the operation to complete.

  4. To update Python to version 3.12, run this command:

    yc managed-airflow cluster update airflow411 \
      --python-version=3.12
    
  1. Open the current Terraform configuration file describing your infrastructure.

  2. In the cluster description, set the airflow_version field value to 2.11.

    resource "yandex_airflow_cluster" "<cluster_name>" {
      ...
      airflow_version = "2.11"
      ...
    }
    
  3. Apply the changes:

    terraform apply
    
  4. Set the python_version field value to 3.12:

    resource "yandex_airflow_cluster" "<cluster_name>" {
      ...
      python_version = "3.12"
      ...
    }
    
  5. Apply the changes once again:

    terraform apply
    

See alsoSee also

  • Versioning in Managed Service for Apache Airflow™
  • Apache Airflow™ versioning policy

Was the article helpful?

Previous
Updating a cluster
Next
Stopping and restarting a cluster
© 2026 Direct Cursus Technology L.L.C.