Delete resources in ECS and ECR

Delete ECS Resources

First, you need to delete the two services, backend and frontend.

  • Go to the AWS console and search for ECS.
  • Select the Cluster you created and scroll down to the Service section.
  • Select the two running services and choose Delete service.

ECS

  • Select Force delete.
  • Enter delete
  • Select Delete.

ECS

  • Complete the service deletion.

ECS

Next, proceed to delete Task definitions.

  • Go to Task definitions and select all revisions.
  • Expand Action and choose Deregister.

ECS

  • Select Deregister.

ECS

  • Perform the same steps for the frontend as you did for the backend.

ECS

ECS

  • Complete the deletion of Task definitions.

ECS

Delete ECS Cluster

  • Go back to the Cluster and select Delete cluster.

ECS

  • Enter delete FCJ-Lab-cluster
  • Select Delete.

ECS

  • Wait a moment for the cluster deletion to complete.

ECS

Delete ECR Resources

First, delete the Images.

  • Go to the repository in ECR.
  • Select the existing image and choose Delete.

ECR

  • Enter delete
  • Select Delete.

ECR

  • Image deletion successful.

ECR

Next, delete the repository in ECR

  • Select the repository you want to delete.
  • Choose Delete.

ECR

  • Select Delete.
  • Repository deletion successful.

ECR

Repeat the same steps for the remaining ECR repositories.