# Managed Airflow

[Amazon Managed Workflows for Apache Airflow (Amazon MWAA)](https://aws.amazon.com/managed-workflows-for-apache-airflow/) orchestrates your workflows using Directed Acyclic Graphs (DAGs) written in Python. You provide MWAA an Amazon S3 bucket where your DAGs, plugins, and Python requirements reside. You can run and monitor your DAGs using the AWS Management Console, a command line interface (CLI), a software development kit (SDK), or the Apache Airflow user interface (UI).

## Creating an S3 bucket for Managed Airflow

Create a S3 bucket by following the steps [here](/docs/automation-platform/overview/aws-services/s3-bucket.md).

## Uploading DAGs to an S3 **Bucket**

Package and upload your DAG (Directed Acyclic Graph) code to Amazon S3. Amazon MWAA loads the following folders and files into Airflow.

<div align="left"><figure><img src="/files/3Q13lsibUa8oTuz4hGuW" alt=""><figcaption><p>S3 Objects for Airflow configuration</p></figcaption></figure></div>

{% hint style="info" %}
Ensure Versioning is enabled for the custom plugins in a `plugins.zip`, the `startup` shell script file and Python dependencies in a `requirements.txt` on your Amazon S3 bucket.
{% endhint %}

Refer to the[ Amazon documentation ](https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags.html)on DAGs for more details.

## Configuring the Managed Airflow Environment

1. In the DuploCloud Portal, navigate to **Cloud Services** -> **Analytics.**
2. Click the **Airflow** tab.
3. Click **Add**. The **New Managed Airflow Environment** wizard displays.
4. Provide the required information, such as Airflow Environment Name, Airflow Version, S3 bucket, and DAGs folder location by navigating through the wizard. You can also enable Logging for Managed Airflow.

<figure><img src="/files/OGN5FYRUBwXGDWZ11KVh" alt=""><figcaption><p>The <strong>New Managed Airflow Environment</strong> wizard</p></figcaption></figure>

{% hint style="warning" %}
If you specify `plugins.zip`, `requirements.txt`, and `startup` script while setting up the Airflow Environment, you must provide the S3 Version ID of these files (for example, `lSHNqFtO5Z7_6K6YfGpKnpyjqP2JTvSf`). If the Version ID is blank, the default reference is to the latest Version ID of the files specified from S3 Bucket.
{% endhint %}

## **Viewing the Managed Airflow Environment**

After setup, view the Managed Airflow Environment from the DuploCloud Portal, using the **Airflow** tab. You can view the Airflow Environment in the AWS Console by clicking the **WebserverURL**.

<figure><img src="/files/sqcoHtb4BiwyOEgmgQ0x" alt=""><figcaption><p><strong>Airflow</strong> tab containing details of the Managed Airflow Environment</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/overview/aws-services/managed-airflow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
