Skip to main content

Environment variable plugin for MWAA

Project description

MWAA Environment Variable Plugin

Overview

The MwaaEnvVarPlugin is a custom Apache Airflow plugin designed for Amazon Managed Workflows for Apache Airflow (MWAA). This plugin automatically converts MWAA configuration options in the env section prefix (e.g., env.foo_bar) into user-friendly environment variables (e.g., FOO_BAR), as opposed to the default AIRFLOW__ENV__FOO_BAR provided by vanilla MWAA.

Features

  • Automatically detects environment variables set by MWAA through configuration variables (env section).
  • Converts these variables to user-friendly names without the AIRFLOW__ENV prefix and double underscores.
  • Sets the new environment variables in the system.
  • The new variables are available in all processes (Scheduler, Worker) and override env. variables that might be set in startup.sh script.

Installation

  1. Simply add mwaa-env-var-plugin into your MWAA requirements.txt:
mwaa-env-var-plugin==0.0.5
  1. By default, in Apache Airflow v2, plugins are configured to be "lazily" loaded using the core.lazy_load_plugins : True setting. Make sure you add core.lazy_load_plugins : False as an Apache Airflow configuration option to load plugins at the start of each Airflow process to override the default setting.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mwaa_env_var_plugin-0.0.5-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file mwaa_env_var_plugin-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mwaa_env_var_plugin-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c137544a355617797c39d59c5cd0d3b3793ded3c29976854e6a6ea915207974c
MD5 8b0100fc0a5ce4a11891e9258b863ba0
BLAKE2b-256 5b5d0b4fb0a831112cf8e640ea902c4f874d594c49278c7698068720a072ce5f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page