copilot-cli
copilot-cli copied to clipboard
add `--spot-count` for `task run` on FARGATE_SPOT capacity provider
This idea was already mentioned in https://github.com/aws/copilot-cli/issues/702#issuecomment-647702212. I think a spot instance is the best choice for running one-off tasks. I like the parameter suggestions.
copilot task run --count 5 runs 5 regular fargate tasks.
copilot task run --spot-count 5 tries to run up to 5 fargate spot tasks.
copilot task run --count 5 --spot-count 5 runs 5 regular fargate tasks and up to 5 fargate spot tasks.