ECS Fargate charge by CPU/memory defined on task or on container

0

I have an ECS Fargate task with a few containers that depend on each other sequentially (so container A runs first when the task starts, then container B starts once A succeeds, and so on). Some containers need large CPU/memory while some only need small ones. To make sure all of them have sufficient resources, I set the CPU/memory for the task as the maximum resources needed across all containers.

My question is, does AWS charge me based on the resources allocated to each container, or on the resources requested by the task? The latter would be much more expensive because all container run time will be charged by the maximum rate.

1개 답변
0

Example 1 in this document shows the fee based on the number of tasks.
https://aws.amazon.com/fargate/pricing/?nc1=h_ls

So I guess the answer to your question would be to charge based on the resources requested by the task.

profile picture
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠