Open raags opened 4 years ago
Thanks for the heads up, @raags ! Agreed that the experience here could be improved.
@raags what are you doing to work around this in the meantime? Is there a certain amount of time you've been waiting before trying the command at a later point in time? I'm curious because we're experiencing these exceptions when trying to run containers backed by Fargate in our ECS cluster...
We are using aws ecs run-task
directly instead, and handling the exceptions.
@raags Thanks for the info. That makes sense. We're basically doing the same thing in our scripts.
Summary
When starting a one-off task with
ecs-cli compose start
the command can sometimes fail due toThrottlingException
exception.Description
Which specific command was run? (Example:
ecs-cli up --capability-iam --size 2 --launch-type EC2
)ecs-cli compose start -f compose_file.yml --ecs-params ecs-params.yml
Which version of the CLI you are using? (Run:
ecs-cli --version
)ecs-cli version 1.16.0 (5c02c34)
Which version of Go are you using? (Run:
go version
)go version go1.11.13 linux/amd64
What platform are you using to run ECS CLI commands? (E.g. Linux, macOS, Windows) Linux
Expected Behavior
ecs-cli
handles ThrottlingException and does the appropriate backoff and retries. A plus would be configurable amount of retries and retry intervals.Observed Behavior
The
ecs-cli
command fails, the task however succeeds, but theecs-cli
should validate that.