# How is the AWS managed Airflow?

**URL:** <https://awshq.com/t/how-is-the-aws-managed-airflow/17035>\
**Category:** AWS Storage Discussion\
**Tags:** s3, ecs, docker\
**Created:** [August 4, 2023, 3:53pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035 "2023-08-04T15:53:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![They-Took-Our-Jerbs](https://awshq.com/letter_avatar_proxy/v4/letter/t/3bc359/32.png) [@They-Took-Our-Jerbs](https://awshq.com/u/They-Took-Our-Jerbs)\
**Post date:** [August 4, 2023, 3:53pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/1 "2023-08-04T15:53:08Z")

</div>

We currently manage Airflow via ECS containers? Looking to remove the hassle of dockerfiles etc.

Our DAGs are hosted in S3, how is everyone else’s experience with the managed Airflow in AWS? Is it good and easy to use/build?

---

<div class="post-metadata">

**Author:** ![Yoliocaust93](https://awshq.com/letter_avatar_proxy/v4/letter/y/3da27b/32.png) [@Yoliocaust93](https://awshq.com/u/Yoliocaust93)\
**Post date:** [August 4, 2023, 6:37pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/2 "2023-08-04T18:37:43Z")

</div>

As any fully mamaged service, it’s a one click deployment and never care about anything else. Quite good, quite costly, but it definitely does its job

---

<div class="post-metadata">

**Author:** ![rod\_steele1](https://awshq.com/letter_avatar_proxy/v4/letter/r/3be4f8/32.png) [@rod\_steele1](https://awshq.com/u/rod_steele1)\
**Post date:** [August 4, 2023, 6:45pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/3 "2023-08-04T18:45:24Z")

</div>

I’ve implemented batch data pipelining for large geospatial datasets with MWAA as the orchestrator for a few companies. It’s great, no problems. Minor nitpicks are:

- if you mess up the deployment config it takes like an hour to see what the issue was
- it used to be challenging to develop locally but AWS released [https://github.com/aws/aws-mwaa-local-runner](https://github.com/aws/aws-mwaa-local-runner) which makes things a lot easier
- it can be expensive, I’m unsure however the difference in price using MWAA vs rolling your own

---

<div class="post-metadata">

**Author:** ![flyingmayo](https://awshq.com/letter_avatar_proxy/v4/letter/f/7feea3/32.png) [@flyingmayo](https://awshq.com/u/flyingmayo)\
**Post date:** [August 4, 2023, 6:58pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/4 "2023-08-04T18:58:07Z")

</div>

I’m running a production integrations suite via MWAA. The platform has been solid. We had to figure out how to test our logic locally so that our development flow didn’t involve

“…push to s3…wait for MWAA to pick up the files…watch the dag run…”

but once that was in place, it’s been pretty great.

One caveat is that we weren’t able to upgrade to MWAA 2.5.1 and instead had to build an entirely new MWAA environment and re-import our dags. I can’t speak to whether that’s a failing of the way AWS is handling MWAA or if that would be true for a self-hosted airflow installation.

Or maybe we just missed the boat somewhere and were unaware of the upgrade path. Either way, something to consider

---

<div class="post-metadata">

**Author:** ![qalis](https://awshq.com/letter_avatar_proxy/v4/letter/q/ecd19e/32.png) [@qalis](https://awshq.com/u/qalis)\
**Post date:** [August 4, 2023, 7:34pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/5 "2023-08-04T19:34:38Z")

</div>

We gave up on MWAA, since it costs a lot, and we are running only a handful of DAGs. Running Helm chart on our k8s cluster is easy, and also much, much cheaper, even with sizeable worker. Note that the absolute lowest you can go on MWAA is around 340$ monthly.

---

<div class="post-metadata">

**Author:** ![saaspiration](https://awshq.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@saaspiration](https://awshq.com/u/saaspiration)\
**Post date:** [August 4, 2023, 7:36pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/6 "2023-08-04T19:36:46Z")

</div>

> [@flyingmayo](#):
>
> I’m running a production integrations suite via MWAA. The platform has been solid. We had to figure out how to test our logic locally so that our development flow didn’t involve "…push to s3…wait for MWAA to pick …

local runner solves for the waiting game

---

<div class="post-metadata">

**Author:** ![exergy31](https://awshq.com/letter_avatar_proxy/v4/letter/e/3ec8ea/32.png) [@exergy31](https://awshq.com/u/exergy31)\
**Post date:** [August 4, 2023, 9:56pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/7 "2023-08-04T21:56:08Z")

</div>

We use it to orchestrate DS jobs and it mostly performs as advertised, but:

- cost. High, for being a cloud formation template and some hooks into the flask app
- occasional arcane faults when upgrading versions, requiring us to eventually nuke state and start fresh both times after much trying, long iteration cycles and a blocked dev env for several says
- prepare to write your own tooling for plugins and custom operators. Push to s3, then press MWAA button to update new version in boto. Very pedestrian and hard to serialize and keep sane in CI
- don’t bank on enterprise support. Example: split networking between aws and your account makes troubleshooting sometimes tricky. We had a webserver issue and they said they are unable to retrieve any logs from their side of the fence.

That said, its an OK product that mostly works, and still easier to do than handling your own, esp with Iam auth and cloudwatch integrations

Don’t get too attached to whats in your metadata db 🙂

---

<div class="post-metadata">

**Author:** ![youvandal82](https://awshq.com/letter_avatar_proxy/v4/letter/y/c6cbf5/32.png) [@youvandal82](https://awshq.com/u/youvandal82)\
**Post date:** [August 4, 2023, 11:29pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/8 "2023-08-04T23:29:36Z")

</div>

> [@flyingmayo](#):
>
> I’m running a production integrations suite via MWAA. The platform has been solid. We had to figure out how to test our logic locally so that our development flow didn’t involve "…push to s3…wait for MWAA to pick …

yeah that was the original upgrade path - 2-3 months ago they’ve started allowing in place upgrades too i recall (not tried personally )

---

<div class="post-metadata">

**Author:** ![agathver](https://awshq.com/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@agathver](https://awshq.com/u/agathver)\
**Post date:** [August 5, 2023, 1:43am UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/9 "2023-08-05T01:43:25Z")

</div>

We started with airflow and moved to self-hosting with ECS. We now have 10x better performance for less than half the cost.

1. It’s too costly
2. Scaling workers are hard, you don’t have much control on the type of executors you can add
3. Config and API not exposed

---

<div class="post-metadata">

**Author:** ![alias454](https://awshq.com/letter_avatar_proxy/v4/letter/a/8dc957/32.png) [@alias454](https://awshq.com/u/alias454)\
**Post date:** [August 5, 2023, 5:54am UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/10 "2023-08-05T05:54:39Z")

</div>

I was using Terraform to manage DAGs and the config [https://github.com/alias454/sec-airflow-ingester](https://github.com/alias454/sec-airflow-ingester). It is pricey compared to managing your own containers but overall, it seemed to work pretty decent for my use case at the time.

---

<div class="post-metadata">

**Author:** ![holiday\_flat](https://awshq.com/letter_avatar_proxy/v4/letter/h/8c91f0/32.png) [@holiday\_flat](https://awshq.com/u/holiday_flat)\
**Post date:** [August 5, 2023, 7:53am UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/11 "2023-08-05T07:53:59Z")

</div>

We ran Airflow 1x on k8s, and recently moved over to MWAA.

We looked into MWAA and Astronomer. I think Astronomer is much more polished, but our workload would result in huge bills if we went with them, since they charge based on run count.

MWAA to be honest has been kind of disappointing. I ran into an autoscaler bug inside MWAA, which prevents me from using the autoscaler. That was half the point of us looking into managed Airflow.

It also doesn’t support in-place upgrades. I feel like that should have been an MVP feature.

While not having to manage the Airflow infrastructure is pretty nice, I still need to know how to tweak the Airflow parameters for it to run properly.

Lastly, AWS support for MWAA hasn’t been too helpful, and this is with premium support.

---

<div class="post-metadata">

**Author:** ![vldmarton](https://awshq.com/letter_avatar_proxy/v4/letter/v/ebca7d/32.png) [@vldmarton](https://awshq.com/u/vldmarton)\
**Post date:** [August 5, 2023, 7:56am UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/12 "2023-08-05T07:56:01Z")

</div>

> [@holiday\_flat](#):
>
> We ran Airflow 1x on k8s, and recently moved over to MWAA. We looked into MWAA and Astronomer. I think Astronomer is much more polished, but our workload would result in huge bills if we went with them, since they …

Same here. Autoscaler not working reliably and there were a handful of other bugs as well, that rendered the solution not ready for production.

---

<div class="post-metadata">

**Author:** ![NoobInvestor86](https://awshq.com/letter_avatar_proxy/v4/letter/n/f04885/32.png) [@NoobInvestor86](https://awshq.com/u/NoobInvestor86)\
**Post date:** [August 5, 2023, 1:22pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/13 "2023-08-05T13:22:53Z")

</div>

We just moved off of it. It uses older versions of airflow under the hood. There were also other issues the teams had which escape me now, some around jobs shutting down or tasks having have to be restarted periodically.

We then migrated to astronomer. Which uses later versions and patches atomically.

Though even from that now we are migrating to a simple worker pattern.

---

<div class="post-metadata">

**Author:** ![madScienceEXP](https://awshq.com/letter_avatar_proxy/v4/letter/m/a5b964/32.png) [@madScienceEXP](https://awshq.com/u/madScienceEXP)\
**Post date:** [August 6, 2023, 3:41am UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/14 "2023-08-06T03:41:47Z")

</div>

> [@NoobInvestor86](#):
>
> We just moved off of it. It uses older versions of airflow under the hood. There were also other issues the teams had which escape me now, some around jobs shutting down or tasks having have to be restarted …

Three cheers for simple worker patterns getting the job done.

---

<div class="post-metadata">

**Author:** ![dacort](https://awshq.com/letter_avatar_proxy/v4/letter/d/a87d85/32.png) [@dacort](https://awshq.com/u/dacort)\
**Post date:** [August 8, 2023, 6:35am UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/15 "2023-08-08T06:35:46Z")

</div>

> [@holiday\_flat](#):
>
> We ran Airflow 1x on k8s, and recently moved over to MWAA. We looked into MWAA and Astronomer. I think Astronomer is much more polished, but our workload would result in huge bills if we went with them, since they …

Can’t speak to your other points, but [in-place upgrades are available as of June 2023](https://aws.amazon.com/blogs/big-data/introducing-in-place-version-upgrades-with-amazon-mwaa/).

---

<div class="post-metadata">

**Author:** ![holiday\_flat](https://awshq.com/letter_avatar_proxy/v4/letter/h/8c91f0/32.png) [@holiday\_flat](https://awshq.com/u/holiday_flat)\
**Post date:** [August 8, 2023, 6:37am UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/16 "2023-08-08T06:37:45Z")

</div>

> [@dacort](#):
>
> Can’t speak to your other points, but [in-place upgrades are available as of June 2023](https://aws.amazon.com/blogs/big-data/introducing-in-place-version-upgrades-with-amazon-mwaa/).

That is great news, thanks for the info!

---

<div class="post-metadata">

**Author:** ![PlaneBid6005](https://awshq.com/letter_avatar_proxy/v4/letter/p/cc9497/32.png) [@PlaneBid6005](https://awshq.com/u/PlaneBid6005)\
**Post date:** [October 18, 2024, 2:57pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/17 "2024-10-18T14:57:48Z")

</div>

> [@agathver](#):
>
> We started with airflow and moved to self-hosting with ECS. We now have 10x better performance for less than half the cost. 1. It’s too costly 2. Scaling workers are hard, you don’t have much control on the type of …

Any chance you can share how to deploy and config airlfow in ECS?

---

<div class="post-metadata">

**Author:** ![agathver](https://awshq.com/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@agathver](https://awshq.com/u/agathver)\
**Post date:** [October 18, 2024, 5:00pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/18 "2024-10-18T17:00:10Z")

</div>

> [@PlaneBid6005](#):
>
> Any chance you can share how to deploy and config airlfow in ECS?

I wish i could give it. The company closed lol!

High level is you deploy task definitions for trigger, web server and workers and optionally Use the ECS task executor as well

Setup ci/cd to update task definition and deploy it

---

<div class="post-metadata">

**Author:** ![PlaneBid6005](https://awshq.com/letter_avatar_proxy/v4/letter/p/cc9497/32.png) [@PlaneBid6005](https://awshq.com/u/PlaneBid6005)\
**Post date:** [October 19, 2024, 6:45am UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/19 "2024-10-19T06:45:38Z")

</div>

> [@agathver](#):
>
> I wish i could give it. The company closed lol! High level is you deploy task definitions for trigger, web server and workers and optionally Use the ECS task executor as well Setup ci/cd to update task definition and …

Hahah thanks man, no problem!

---

<div class="post-metadata">

**Author:** ![TigerRumMonkey](https://awshq.com/letter_avatar_proxy/v4/letter/t/e68b1a/32.png) [@TigerRumMonkey](https://awshq.com/u/TigerRumMonkey)\
**Post date:** [January 2, 2025, 8:57pm UTC](https://awshq.com/t/how-is-the-aws-managed-airflow/17035/20 "2025-01-02T20:57:55Z")

</div>

Do upgrades follow on directly from airflow releases? same release versions? I find being open source, the release tend to break things and then fixes can take a long time.

[Next page](https://awshq.com/t/how-is-the-aws-managed-airflow/17035.md?page=2)
