PreviewThe migration and promotion flows on this page are in Preview.
- Migrate from Airflow. Bulk migrate connections and Airflow variables from a Deployment’s Airflow metadata database into the Environment Manager.
- Promote to Workspace Environment. Promote a single Deployment-scoped connection, Airflow variable, environment variable, or metrics export to the Workspace level.
Migrate Airflow connections and variables from a Deployment
The Migrate from Airflow flow reads connections and Airflow variables from a Deployment’s Airflow metadata database, copies each one into a Workspace environment object linked to the source Deployment, and removes it from the metadata database.Prerequisites
- Workspace Owner user permissions.
- A standard Astro Deployment with one or more connections or Airflow variables stored in its metadata database. Remote Execution Deployments aren’t supported.
Migrate a connection or Airflow variable
The migration page provides separate entry points for connections and Airflow variables. The steps are equivalent for both object types.- New Astro UI
- Legacy UI
- In the Astro UI, click Deployments, select the Deployment that contains the objects you want to migrate, then click the Environment tab.
- Click Connections or Airflow Variables in the Deployment Environment menu.
- Click Migrate from Airflow. The action appears dimmed when the Deployment’s metadata database doesn’t contain any objects of that type.
- In the migration page, select the connections or Airflow variables you want to migrate. Each row shows whether the object is new to the Workspace or whether a Workspace object with the same key already exists. If a matching Workspace object already exists, Astro creates a Deployment-level override on that Workspace object rather than a duplicate.
- Click Migrate, then confirm in the dialog. The confirmation warns that Astro removes the source objects from the Deployment’s metadata database.
Promote a Deployment environment object to the Workspace
You can promote a Deployment-scoped connection, Airflow variable, environment variable, or metrics export to the Workspace level. After promotion, the object is managed in the Workspace and remains linked to the source Deployment, so the Deployment continues to use the same values.Prerequisites
workspace.envObjects.createanddeployment.updatepermissions, included with Workspace Operator or Workspace Owner user permissions.- A Deployment-scoped object that isn’t already an override of a Workspace-level object.
Promote an object
- New Astro UI
- Legacy UI
- In the Astro UI, click Deployments, then select the Deployment that contains the object.
- Click the Environment tab in the Deployment menu, then open Connections, Airflow Variables, Environment Variables, or Metrics Exports.
- Open the row-level more actions menu for the object you want to promote.
- Select Promote to Workspace Environment.
- Confirm the promotion in the dialog. For environment variables, enter the environment variable key to confirm.