digdag
digdag copied to clipboard
The way to find TaskDefinition in EcsCommandExecutor
EcsCommandExecutor supports two ways to get task definition. One is from TaskDefinitionArn and Others is from tag. Firstly it tries to find a task definition from the arn and if not found then check tag. Unfortunately AWS API does not support find by tag, so current implementation list all task definitions and check the tag one by one. It takes long time if there are many task definitions are defined. In addition, to check the tag, it call AWS API one by one. So too many API calls to AWS will happen.