chore: Update to use current upstream modules #422
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.
Description
This PR updates the module to align with changes introduced in terraform-aws-modules/ecs/aws v6.x. Specifically, it updates the usage of the ECS service and cluster submodules to reflect current upstream expectations and field structures.
Motivation and Context
Align with upstream module conventions (terraform-aws-modules/ecs/aws v6.x)
Remove deprecated fields and adopt new syntax for ECS cluster and service configuration
Ensure future compatibility and reduce drift from supported patterns
Breaking Changes
Yes.
fargate_capacity_providers has been removed and replaced by default_capacity_provider_strategy, matching upstream behavior.
service_registries must now be set to null or omitted entirely — using an empty list [] will result in a type error. This aligns with upstream, which expects an object, not a list.
Some internal variable defaults and structures were updated to follow upstream expectations, which may cause errors if older formats are used without adjustment.
How Has This Been Tested?
Deployed using the updated module in a live production environment
Verified ECS service behavior and cluster creation
Please let me know if there additional changes or things needed I may of missed