skillfed

mwaa-dr

DR Solution for Amazon Managed Workflows for Apache Airflow (MWAA)

mwaa-dr v2.2.0 384.2K downloads/30d#7,067 on PyPI12
License unclear Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files… (full text in the JSON record) Active released

What it is and what it does

mwaa-dr is a Python library that generates DAGs to automate backup, restore, and cleanup of Amazon MWAA metadata stores. It addresses the constraint that MWAA metadata access is only available through DAGs by providing factory classes that generate these DAGs for you, eliminating manual DAG creation.

The library handles metadata export to S3 or local filesystem, supports configurable restore strategies for variables and connections (DO_NOTHING, APPEND, REPLACE), and allows customization through inheritance to include or exclude specific tables. It depends on smart-open for storage abstraction and requires Python 3.7 or later.

Use it for:

  • Automate regular metadata backups of your MWAA environment to S3 for disaster recovery
  • Restore a MWAA metadata store from backup after environment failure or data loss
  • Exclude sensitive tables from backup when using AWS Secrets Manager for variables and connections
  • Customize backup scope by extending factory classes to add or remove specific metadata tables
  • Test configurations locally using the LOCAL_FS storage type

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Generates backup, restore, and cleanup DAGs for Amazon MWAA metadata stores by providing factory classes that create reusable workflows without manual DAG authoring.

Yes. If you operate Amazon MWAA and need disaster recovery for metadata, this library eliminates boilerplate code and provides a tested, actively maintained solution. Install friction is minimal, and the package is production-stable. The unclear license requires review, but the permissive grant language suggests low risk for most use cases.

Install

mwaa-dr on PyPI

pip

pip install mwaa-dr

uv

uv add mwaa-dr

poetry

poetry add mwaa-dr

Installing mwaa-dr

Before you install

Low friction: pure Python wheel with a single runtime dependency (smart-open). Actively maintained with recent commits and production-stable classification.

License in practice

License treatment is unclear—the package carries an Amazon copyright with a permissive grant but lacks an SPDX identifier. Review the full license text before use in proprietary or commercial contexts.

Quickstart

from mwaa_dr.v_2_10.dr_factory import DRFactory_2_10

factory = DRFactory_2_10(
    dag_id='backup',
    path_prefix='data',
    storage_type='S3'
)
dag = factory.create_backup_dag()

Requires MWAA execution role to have read/write permissions on the target S3 bucket; an Airflow variable DR_BACKUP_BUCKET must be set with the bucket name (not ARN)

Verify before relying

  • Whether the unclear license is compatible with your organization's licensing policy
  • Minimum MWAA version compatibility beyond the documented examples (2.7.2, 2.10.3)
  • Whether smart-open's dependencies introduce additional install friction or licensing constraints

Package facts

License Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files… (full text in the JSON record) (unclear)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 1 — smart-open
Maintenance actively maintained — 137 days since the last release
Last repo commit
First released
Downloads 384,178/month — #7,067 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mwaa_dr-2.2.0-py3-none-any.whl

Keywords: MWAA, airflow, disaster, recovery, DR

Development Status :: 5 - Production/StableProgramming Language :: Python

Tags

MWAA disaster recoveryAirflow metadata backup restoreMWAA DAG generationmetadata store export importAirflow DR solutionMWAA backup automationAirflow metadata recovery
aws-mwaabackup-restoredisaster-recovery

More Distributed Computing packages

grpcio

gRPC Python is an HTTP/2-based RPC framework…

permissive · top 100 on PyPI

execnet

execnet lets you spawn and communicate with…

permissive · top 1,000 on PyPI

cloudpickle

Cloudpickle extends Python's standard pickle…

permissive · top 1,000 on PyPI

smart-open

Provides a unified, open()-compatible Python…

permissive · top 1,000 on PyPI

portalocker

Portalocker provides cross-platform file…

permissive · top 1,000 on PyPI

ray

Ray is a distributed computing framework that…

permissive · top 1,000 on PyPI

dag-factory

dag-factory builds Apache Airflow DAGs…

permissive · top 15,000 on PyPI

openlineage-airflow

Integrates Apache Airflow DAGs with OpenLineage…

permissive · top 5,000 on PyPI

acryl-datahub-airflow-plugin

Automatically captures pipeline lineage, task…

permissive · top 15,000 on PyPI

airflow-exporter

Exposes Airflow DAG and task metrics to…

permissive · top 15,000 on PyPI

astronomer-starship

Migrates Airflow metadata—Variables,…

unclear · top 15,000 on PyPI

airflow-code-editor

Browser-based editor and file manager for…

permissive · top 15,000 on PyPI

apache-airflow-core

Apache Airflow's core runtime that schedules,…

permissive · top 5,000 on PyPI

apache-airflow-providers-git

Integrates Git version control operations into…

permissive · top 15,000 on PyPI

astro-airflow-mcp

Provides AI assistants with programmatic access…

unclear · top 15,000 on PyPI

django-dbbackup

Provides Django management commands to backup…

permissive · top 15,000 on PyPI