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 (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 (
envsection). - Converts these variables to user-friendly names without the
AIRFLOW__ENVprefix and double underscores. - Sets the new environment variables in the system.
- The new variables are available in all processes (Scheduler, Worker, Webserver) and override environment variables that might have been set in
startup.shscript.
Installation
- Simply add
mwaa-env-var-plugininto your MWAA requirements.txt:
mwaa-env-var-plugin==1.0.0
- By default, in Apache Airflow v2, plugins are configured to be "lazily" loaded using the
core.lazy_load_plugins : Truesetting. Make sure you addcore.lazy_load_plugins : Falseas an Apache Airflow configuration option to load plugins at the start of each Airflow process to override the default setting.
PyPI
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mwaa_env_var_plugin-1.0.1-py3-none-any.whl.
File metadata
- Download URL: mwaa_env_var_plugin-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b79146ce356bb0da9877fd56718dcc60eee393c2c072d203af77b25d458db006
|
|
| MD5 |
1be6cd3490a59dacbd9aa3e0f7d5f4e1
|
|
| BLAKE2b-256 |
fc5be25e41f6f07d5888ca373cfa2863bb36a0cf407a991060fdc89808323009
|