fix: Optionally lookup for the latest task definition #163
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
A data lookup for the latest task definition revision to be used in the
ECS service was enabled by default, which continually appeared in
plans/applies.
This is used when the task definition's updated by an external
deployment tool, so this is now disabled and requires enabling the
external_task_definition_updates
variable so the default behaviour isquiet.
Motivation and Context
A fix for #72 as an alternative to #124 which removed the functionality for external deployment tools.
I don't need the external tool support, but I am trying to make the default behaviour quieter and not show this update on every run.
Breaking Changes
Yes, for people using external deployment tools, they should set this new
external_task_definition_updates
variable to true. This feels like the exception as the default behaviour of the module is to deploy the task definition itself.How Has This Been Tested?
Two tests, one with the default behaviour (
external_task_definition_updates
set to false) and verified with aplan
that there are no proposed changes/noise:and again with it set to true shows the previous behaviour: