For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
      • AstroFully-managed data operations, powered by Apache Airflow.
      • Astro Private CloudRun Airflow-as-a-service in your environment.
      • Professional ServicesExpert Airflow services for your enterprise's success.
    • Tools
      • Cosmos
      • Orbiter
      • CLI
      • AI SDK
      • Agents
      • Blueprint
      • UpdatesThe State of Airflow 2026See the insights from over 5,800 data practitioners in the full report. Download Now ➔
  • Customers
  • Docs
    • Insights
      • Blog
      • Webinars
      • Resource Library
      • Events
    • Education
      • Academy
      • What is Airflow?
  • Pricing
Get Started Free
    • Overview
      • Airflow edge cases on Astro
      • Astro Runtime upgrades
      • Choosing Airflow or Astro alerts
      • Rightsize Airflow on Astro
      • Connections and branch-based deploys
      • Cross-deployment dependencies
      • DAG writing on Astro
      • Manage dev Deployments
      • Work with the Astro API
      • Manage resources
      • Repository strategy
      • Git submodules
    • Book Office Hours

Product

  • Platform Overview
  • Astro
  • Astro Observe
  • Astro Private Cloud
  • Security & Trust
  • Pricing

Tools & Services

  • Cosmos
  • Docs
  • Professional Services
  • Product Updates

Use Cases

  • AI Ops
  • Data Observability
  • ETL/ELT
  • ML Ops
  • Operational Analytics
  • All Use Cases

Industries

  • Financial Services
  • Gaming
  • Retail
  • Manufacturing
  • Healthcare
  • All Industries

Resources

  • Academy
  • eBooks & Guides
  • Blog
  • Webinars
  • Events
  • The Data Flowcast Podcast
  • All Resources

Airflow

  • What is Airflow
  • Airflow on Astro
  • Airflow 3.0
  • Airflow Upgrades
  • Airflow Use Cases
  • Airflow 2.x End of Life

Company

  • Our Story
  • Customers
  • Newsroom
  • Careers
  • Contact

Support

  • Knowledge Base
  • Status
  • Contact Support
GitHubYouTubeLinkedInx
  • Legal
  • Privacy
  • Terms of Service
  • Consent Preferences

  • Do Not Sell or Share My Personal information
  • Limit the Use Of My Sensitive Personal Information

Apache Airflow®, Airflow, and the Airflow logo are trademarks of the Apache Software Foundation. Copyright © Astronomer 2026. All rights reserved.

LogoLogo
On this page
  • Feature overview
  • Prerequisites
  • Implementation
  • Explanation
  • See also
Best practices

Manage Astro connections in branch-based deploy workflows

Edit this page
Built with

Airflow Dags often interact with a multitude of external systems, such as data warehouses and APIs. Dags access these systems using Airflow connections. A common logistical consideration when running Airflow at scale is deciding how to manage connections between development and production environments. Different environment types require different levels of access to external resources.

Astro’s branch-based development and connection management features allow you to automatically share specific Airflow connections with Astro Deployments based on their development context.

When you combine branch-based deploys and connection management, you can:

  • Automatically create Deployments for development branches with a set of development Airflow connections.
  • Override preset Airflow connections on a per-Deployment basis to troubleshoot or customize your development environment.
  • Run a development and production Deployment for the same project without changing Airflow connection names between the two contexts.

Feature overview

This use case depends on the following Astro features to create a fully integrated CI/CD pipeline:

  • Configuring Airflow connections in the Astro Environment Manager.
  • Branch-based, or multi-branch Deployments using CI/CD.

Prerequisites

This use case assumes you have:

  • At least two Astro Deployments, one for development and one for production.
  • A Git-based repository where you manage an Astro project.
  • A configured multi-branch CI/CD pipeline. See CI/CD templates.

However, you can extend this use case to encompass multiple development or production environments.

Implementation

To implement this use case:

  1. As a Workspace Operator or Admin, create connections in the Astro Environment manager to your development-level resources. See Create a connection.
  2. Set these connections to be available to all Deployments in the Workspace by default. See Configure connection sharing for a Workspace. Your Dag authors can now access external development and testing resources across all Deployments.
  3. Choose a Deployment in your Workspace that you want to run your production workflows. In the Deployment, override the connections you configured to instead connect to your production resources. See Override connection fields.
  4. In the Git repository for your Astro project, define a multi-branch CI/CD pipeline for deploying to Astro. For an example of how to do this in Astro, see the Astro Github integration.

Now, when a Dag author deploys to either a production or development Deployment through CI/CD, they can run their Dags in Astro without needing to configure connections. Additionally, because your production connection shares the same connection ID as your default development connection, Dag authors don’t have to update their code to point towards different connections when promoting their code to production.

Explanation

Using branch-based Deployments with the Astro Environment Manager allows your team to focus on the parts of Astro that matter most for their roles. For example, using the Astro Environment Manager means that you only need one administrative user to manage connections across multiple Deployments:

  • A Workspace Owner creates an Airflow connection in the Astro Environment Manager that connects to external development resources. They share this connection to all Deployments by default by turning on the Linked to all Deployments setting.
  • In the production Deployment, the Workspace Owner overrides the linked connection to instead connect to production resources on the same external system. Because the connection ID and code are the same, this override requires no updates at the Dag level.

After a Workspace Owner creates connections, Dag authors can develop Dags without needing to reconfigure connections between development and production:

  • A Dag author creates a new development branch of an Astro project. The CI/CD pipeline for the repository deploys their branch to the development Deployment on Astro. This is known as a multi-branch CI/CD pipeline.
  • The Dag author has access to development resources because the Workspace Author configured a default Airflow connection for the Deployment. The author can pull this connection onto their local machine for testing purposes, or test by deploying to the development Deployment on Astro.
  • When the Dag author finishes development, they merge their development branch into production. The CI/CD pipeline deploys this change to the production Deployment.
  • When the Dag author’s code runs in the production Deployment, it now accesses production resources based on the overrides configured by the Workspace Owner.

This use case provides several benefits for both Workspace managers and Dag authors:

  • When you use branch-based deploys, your CI/CD pipeline automatically deploys your branches to development Deployments. This saves resources and reduces the complexity of development for Dag authors.
  • Workspace Operators and Owners can manage connections without needing access to Dag code.
  • Dag authors only need a connection ID to connect their dags, meaning they can focus on data engineering instead of connection configuration.
  • Connection IDs don’t need to be updated when you promote code to production, reducing development timelines and reducing the number of resources to manage.

See also

  • Manage Airflow connections and variables
  • Automate actions on Astro