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.

Sajiyah
asked 7 months ago203 views
1 Answer
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
EXPERT
answered 7 months ago
  • 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.

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