Installation Instructions
These instructions apply to self-hosted Backstage only. To use this plugin on Roadie, visit the docs.
Install the plugin
bash
yarn add @backstage/plugin-apache-airflow
Import it into your Backstage application
typescript
// packages/app/src/App.tsx
import { ApacheAirflowPage } from '@backstage/plugin-apache-airflow';
Add the plugin page as a route
typescript
// packages/app/src/App.tsx
...
<Route path="/settings" element={<UserSettingsPage />} />
+ <Route path="/apache-airflow" element={<ApacheAirflowPage />} />
</FlatRoutes>
Or, if you want, embed the DAGs into an existing page
typescript
import { ApacheAirflowDagTable } from '@backstage/plugin-apache-airflow';
export function SomeEntityPage(): JSX.Element {
return (
<Grid item md={6} xs={12}>
<ApacheAirflowDagTable
dagIds={[
'example_bash_operator',
'example_branch_datetime_operator_2',
'example_branch_labels',
]}
/>
</Grid>
);
}
Add proxy configuration
yaml
# app-config.yaml
proxy:
'/airflow':
target: https://your.airflow.instance.com/api/v1
headers:
Authorization: Basic ${APACHE_AIRFLOW_BASIC_AUTH_TOKEN}
Get and provide a APACHE_AIRFLOW_BASIC_AUTH_TOKEN as an environment variable. Where the basic authorization token is the base64 encoding of the username and password of your instance.
bash
echo -n "airflow:airflow" | base64 -w0
Changelog
The Apache Airflow plugin has not seen any significant changes since 10 months ago.
Set up Backstage in minutes with Roadie
Focus on using Backstage, rather than building and maintaining it.
