mwaacli is a command-line interface (CLI) for interacting with Amazon Managed Workflows for Apache Airflow (MWAA).
It simplifies the management of MWAA environments, allows execution of Airflow CLI commands, provides quick access to the MWAA web UI, and supports the AWS MWAA Local Runner for local testing and development.
- List MWAA environments: Easily list all your MWAA environments.
- Get details of a specific MWAA environment: Retrieve detailed information about a specific MWAA environment.
- Execute Airflow CLI commands in MWAA: Run Airflow CLI commands directly within MWAA.
- Call Airflow Rest API: Interact with the Airflow Rest API seamlessly.
- AWS MWAA Local Runner Support: Set up and control a local MWAA environment for testing and development.
- Open the MWAA web UI in a browser: Quickly open the MWAA web UI in your default browser.
- Manage Airflow SecurityBackends: Handle Airflow SecurityBackends efficiently.
brew tap hupe1980/mwaacli
brew install mwaacliDownload the .deb, .rpm, or .apk package from the releases page and install it using the appropriate package manager for your system.
Download the pre-compiled binaries from the releases page and copy them to your desired location.
The mwaacli application supports various commands. Use the --help flag to see available commands and their descriptions:
./mwaacli --help
mwaacli is a command-line interface for interacting with Amazon Managed Workflows for Apache Airflow (MWAA).
Usage:
mwaacli [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
dags Manage DAGs in MWAA
environments Manage MWAA environments
help Help about any command
local Setup and control the AWS MWAA local runner
logs Fetch logs from CloudWatch for an MWAA environment
open Open the MWAA webapp in a browser
roles Manage Airflow roles
run Execute an Airflow CLI command in MWAA
sb Manage secrets backend
variables Manage variables in MWAA
Flags:
-h, --help help for mwaacli
--profile string AWS profile
--region string AWS region
-v, --version version for mwaacli
Use "mwaacli [command] --help" for more information about a command.The AWS MWAA Local Runner allows you to test and develop workflows locally. Follow these steps to set up the local runner:
-
Initialize the Local Runner: Use the
mwaacli local initcommand to clone and set up the AWS MWAA Local Runner repository:mwaacli local init -
Start the Local Runner: Start the local runner environment:
mwaacli local start --port 8080 -
Access the Airflow Web UI: Open your browser and navigate to:
http://localhost:8080 -
Follow Logs (Optional): To follow the logs of the local runner, use the
--follow-logsflag:mwaacli local start --port 8080 --follow-logs
For more details, refer to the AWS MWAA Local Runner documentation.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for more details.