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
      • Overview
        • Overview
        • Quickstart
        • Author dags
        • Blueprint
        • Test and run dags
      • Dag versioning
      • Airflow logs
      • DAG and task runs
      • Airflow REST API
    • 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
  • How ephemeral test Deployments work
  • Configure ephemeral test Deployment settings
  • Workspace-level Astro IDE test Deployment settings
  • Make connections, Airflow variables, and environment variables available
  • Use a .env file for ephemeral test Deployments
  • .env file format
  • Variable precedence
  • Access the Airflow UI
Develop DAGsAstro IDE

Test and run code with the Astro IDE

Built with
Preview
This feature is in Preview.

The Astro IDE enables you to quickly test, validate, and iterate on Airflow dags without needing a local Airflow or Docker environment. Use ephemeral test Deployments to see how your code runs in a real environment, adjust Deployment settings, and troubleshoot using built-in interfaces.

How ephemeral test Deployments work

Ephemeral test Deployments offer a temporary environment to run and validate your Airflow dag changes before merging or deploying to production.

  • Start an ephemeral test Deployment to launch an isolated environment based on your project configuration.
  • Run your dag and validate behavior using real dependencies, environment variables, and integrations.
  • Detect import errors, syntax issues, or runtime problems as they occur in a realistic environment.
  • Tear down the environment automatically when testing is complete, with no impact on existing Deployments.

Using ephemeral Deployments in the Astro IDE consumes some of your Workspace AI credits. See the Preview FAQs for more details.

Configure ephemeral test Deployment settings

Ephemeral test Deployments in the Astro IDE inherit default settings from your Workspace-level Astro IDE test Deployment configuration. You can adjust session-specific settings per Deployment, such as environment variables and connections, as needed within the IDE. To make connections, Airflow variables, or environment variables available to a project’s ephemeral test Deployments, link them to the Astro IDE project from the Workspace Environment Manager. See Make connections, Airflow variables, and environment variables available.

Workspace-level Astro IDE test Deployment settings

You can control default resource behavior for ephemeral test Deployments in your Workspace under Workspace Settings > General > Astro IDE:

  • Test Deployment Timeout: The amount of idle time before an ephemeral test Deployment is automatically stopped.
  • Test Deployment Cluster: The cluster on which all new ephemeral test Deployments are provisioned.
  • Auto-Start Test Deployments: When enabled, the Astro IDE automatically starts an ephemeral test Deployment for every session.

These workspace-level settings apply to all ephemeral test Deployments in the Astro IDE and you can tailor them to your Organization’s needs.

Ephemeral test Deployments have some preset configurations optimized for testing. For example, AIRFLOW__SCHEDULER__USE_JOB_SCHEDULE=false disables automatic task scheduling, so tasks run only when manually triggered in the Test tab. This is by design for better test control.

Make connections, Airflow variables, and environment variables available

Ephemeral test Deployments need access to the same connections, Airflow variables, and environment variables your Dags use against external systems, databases, and cloud services. Linking these objects to your Astro IDE project from the Workspace Environment Manager lets you validate code, integrations, and data dependencies in a realistic environment without sharing those values with your production Deployments.

Astronomer recommends linking environment objects to the specific Astro IDE project that needs them. Project-linked objects only affect that project’s ephemeral test Deployments. See:

  • Link a connection to an Astro IDE project
  • Link an Airflow variable to an Astro IDE project
  • Link an environment variable to an Astro IDE project

If you want a value to be available to every Astro IDE project in the Workspace, configure project sharing on the object so that it auto-links to all projects. See Configure project sharing for a Workspace.

If you already define connections or Airflow variables in a Deployment’s Airflow metadata database, you can move them into the Environment Manager and then link them to your Astro IDE projects. See Migrate existing objects to the Environment Manager.

Use a .env file for ephemeral test Deployments

When you start an ephemeral test Deployment, the Astro IDE automatically imports environment variables from a .env file in your project root. This lets you configure environment variables for testing without adding them through the Environment Manager.

.env file format

Add a .env file to your project root with one variable per line:

$MY_API_KEY=your-api-key
$DATABASE_URL=postgresql://user:password@host:5432/db
$FEATURE_FLAG=true

Variable precedence

System environment variables always take precedence. If a variable in your .env file has the same name as a system variable, such as an Airflow or scheduler setting, the system variable overrides the .env value.

The Deployment does not store variables from your .env file as secrets. Use the Environment Manager for sensitive credentials.

If the .env file is missing or invalid, the Deployment starts normally without importing variables.

Access the Airflow UI

While testing, open the Airflow UI for your ephemeral Deployment to inspect dags, tasks, and metadata using Airflow-native tools.

  1. Click Start Test Deployment from your dag in Astro IDE. After the Deployment starts, a dropdown arrow appears.
  2. Click the dropdown arrow and select Open Airflow. The Airflow UI for your ephemeral test Deployment will open in a new browser tab, where you can inspect dags, tasks, logs, and environment details.