feat(mwaa): add worker_replacement_strategy variable#74
Merged
Conversation
Add support for configuring the worker replacement strategy when updating MWAA environments. This allows users to choose between FORCED (immediate replacement) and GRACEFUL (wait up to 12 hours for tasks to complete) strategies. - Add worker_replacement_strategy variable to root module - Add worker_replacement_strategy to complete example - Default to null in root module to preserve existing behavior
Contributor
Author
|
/terratest |
aknysh
approved these changes
Apr 2, 2026
|
These changes were released in v0.16.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what
worker_replacement_strategyvariable to both the root and example modules, allowing users to choose between "FORCED" and "GRACEFUL" strategies for replacing Airflow workers during updates. Includes input validation to ensure only valid values are used. (variables.tf,examples/complete/variables.tf)aws_mwaa_environmentresource to use the newworker_replacement_strategyvariable, ensuring the chosen strategy is applied to the environment. (main.tf)examples/complete/main.tf)worker_replacement_strategyin the example fixture file to "FORCED". (examples/complete/fixtures.us-east-2.tfvars)why
references
worker_replacement_strategyfor graceful MWAA worker restarts during deployments. #73