使用AWS re:Post即您表示您同意 AWS re:Post 使用条款

How to delete ecs?

0

I am just a beginner trying to learn aws and this was created just as a demo purpose. Also I am on my root account. I am trying from last two weeks to delete my ecs services. When I try to delete that it says task defination is still present. In task defination the status is delete in progress from last two weeks. Without taks defination deletion I cant delete ecs which is curently charging money which I cant afford as a student. Please help me.

已提问 1 年前299 查看次数
1 回答
1

Hello.

I don't think ECS will charge you just for having a task definition.
Does this mean that the task container is running?
https://aws.amazon.com/fargate/pricing/?nc1=h_ls

Can you delete it using the steps in the document below?
https://repost.aws/knowledge-center/ecs-delete-terminate

An ECS service cannot be deleted if a task that it manages is running.
If the task is running, please stop it by following the steps in the document below.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/stop-task-console-v2.html

profile picture
专家
已回答 1 年前
  • Currently the issue is the task defination shows delete in progress and by documentation it shows that something is blocking it. So I think some container or fargate is blocking. Ihave checked containers are not present. But I cant find fargate through the search. I just want to know if it could consume charges.

  • There is no cost if the container is not running.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则