How to determine if Fargate is using Spot Instances

Viewed 219

Background: I'm running docker-compose ecs locally and need to ensure I use Spot instances due to my hobbyist budget.

Question: How do I determine and guarantee that instances are running as Fargate Spot instances?

Evidence:

I have setup the default capacity provider strategy as FARGATE_SPOT I have both the default-created capacity providers 'FARGATE' and 'FARGATE_SPOT'

capacity providers default strategy

1 Answers

You can see this in the web console when you view a specific task:

enter image description here

To find this page open click on your cluster from within ECS, then go to the "Tasks" tab and click on the task id.

You can also see this through the aws cli:

aws ecs describe-tasks --cluster <your cluster name> --tasks <your task id> | grep capacityProviderName
Related