Skip to content

feat(mwaa): add worker_replacement_strategy variable#74

Merged
aknysh merged 1 commit intomainfrom
add-worker-replacement-strategy
Apr 2, 2026
Merged

feat(mwaa): add worker_replacement_strategy variable#74
aknysh merged 1 commit intomainfrom
add-worker-replacement-strategy

Conversation

@RoseSecurity
Copy link
Copy Markdown
Contributor

@RoseSecurity RoseSecurity commented Apr 2, 2026

what

  • Added the worker_replacement_strategy variable 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)
  • Updated the aws_mwaa_environment resource to use the new worker_replacement_strategy variable, ensuring the chosen strategy is applied to the environment. (main.tf)
  • Passed the new variable through the example module wiring, so it can be set in example deployments. (examples/complete/main.tf)
  • Set a default value for worker_replacement_strategy in the example fixture file to "FORCED". (examples/complete/fixtures.us-east-2.tfvars)

why

  • This adds support for configuring the worker replacement strategy for Apache Airflow environments managed by this Terraform module. Users can now specify whether workers should be replaced in a "FORCED" or "GRACEFUL" manner during environment updates. The change introduces new variables, updates resource definitions, and ensures input validation for the new setting.

references

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
@RoseSecurity RoseSecurity requested review from a team as code owners April 2, 2026 13:42
@RoseSecurity RoseSecurity requested review from Gowiem and nitrocode April 2, 2026 13:42
@mergify mergify bot added the triage Needs triage label Apr 2, 2026
@RoseSecurity
Copy link
Copy Markdown
Contributor Author

/terratest

@RoseSecurity RoseSecurity added enhancement New feature or request minor New features that do not break anything feature New functionality labels Apr 2, 2026
@aknysh aknysh merged commit 374e299 into main Apr 2, 2026
41 of 55 checks passed
@aknysh aknysh deleted the add-worker-replacement-strategy branch April 2, 2026 15:52
@mergify mergify bot removed the triage Needs triage label Apr 2, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

These changes were released in v0.16.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature New functionality minor New features that do not break anything

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support worker_replacement_strategy for graceful MWAA worker restarts during deployments.

2 participants