mwaacli

command module
v0.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 1 Imported by: 0

README ΒΆ

mwaacli

Build Status Go Reference goreportcard

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.

πŸš€ Features

  • 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.

πŸ“¦ Installation

Using Homebrew (MacOS)
brew tap hupe1980/mwaacli
brew install mwaacli
Using deb/rpm/apk Packages

Download the .deb, .rpm, or .apk package from the releases page and install it using the appropriate package manager for your system.

Manual Installation

Download the pre-compiled binaries from the releases page and copy them to your desired location.

πŸ›  Usage

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.

πŸ”§ Setting Up the AWS MWAA Local Runner

The AWS MWAA Local Runner allows you to test and develop workflows locally. Follow these steps to set up the local runner:

  1. Initialize the Local Runner: Use the mwaacli local init command to clone and set up the AWS MWAA Local Runner repository:

    mwaacli local init
    
  2. Start the Local Runner: Start the local runner environment:

    mwaacli local start --port 8080
    
  3. Access the Airflow Web UI: Open your browser and navigate to:

    http://localhost:8080
    
  4. Follow Logs (Optional): To follow the logs of the local runner, use the --follow-logs flag:

    mwaacli local start --port 8080 --follow-logs
    

For more details, refer to the AWS MWAA Local Runner documentation.

🀝 Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

πŸ“ License

This project is licensed under the MIT License. See the LICENSE file for more details.

Documentation ΒΆ

Overview ΒΆ

Package main is the entry point for the MWAA CLI application. It initializes and executes the command-line interface.

Directories ΒΆ

Path Synopsis
Package cmd provides the command-line interface (CLI) implementation for mwaacli.
Package cmd provides the command-line interface (CLI) implementation for mwaacli.
pkg
cloudwatch
Package cloudwatch provides a client for interacting with Amazon CloudWatch Logs.
Package cloudwatch provides a client for interacting with Amazon CloudWatch Logs.
config
Package config provides utilities for initializing and managing AWS configuration details.
Package config provides utilities for initializing and managing AWS configuration details.
docker
Package docker provides a client for interacting with the Docker daemon.
Package docker provides a client for interacting with the Docker daemon.
local
Package local provides utilities and constants for managing the AWS MWAA local runner environment.
Package local provides utilities and constants for managing the AWS MWAA local runner environment.
mwaa
Package mwaa provides a client for interacting with AWS Managed Workflows for Apache Airflow (MWAA).
Package mwaa provides a client for interacting with AWS Managed Workflows for Apache Airflow (MWAA).
s3
secretsbackend
Package secretsbackend provides an abstraction layer for managing secrets in Apache Airflow environments configured with AWS MWAA.
Package secretsbackend provides an abstraction layer for managing secrets in Apache Airflow environments configured with AWS MWAA.
util
Package util provides utility functions and helpers for common operations used across the application.
Package util provides utility functions and helpers for common operations used across the application.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL