-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register a new task definition for IAM changes (#7564)
We no longer register a new task definition for every run: #7009 This introduced a regression where changing the IAM role used by a task definition doesn't re-register the task definition. So it tries to run the task with an IAM role that doesn't exist. The easiest way to reproduce this is to use our example `docker compose` functionality: #7358 This change extends our logic for deciding when to reuse a task definition. Now, we reuse a task definition if: - The container definition's image, name, or secrets change - The task definition's task role or execution role changes For now, I've pulled the logic out into its own private method with a separate test so we can more easily extend the logic. I think eventually, this would benefit from a broader refactor - perhaps with the introduction of a `TaskDefinition` class that implements `__eq__`.
- Loading branch information
Showing
3 changed files
with
101 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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