How many cores does ECS Fargate have.


I am trying to run python multithreading in task form on ECS Fargate. How many cores does Fargate have per CPU?

asked 3 months ago283 views
2 Answers


Although it is in Japanese, there was someone who was conducting a verification to check the number of CPU cores on ECS Fargate.
I think the following information will be helpful.

profile picture
answered 3 months ago

Hi, thanks for reaching out. You can check the number of cores by running the below Python code on your task:

import os

Or you can check it with the aws cli:

aws ecs describe-task-definition --task-definition my-task-def --query taskDefinition.cpu --output text

The number of cpu cores will vary depending on cpu size. I hope this helps.

Steve T
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions