Bobcares

Deregister ECS container instance – How to do it

by | Aug 31, 2021

Wondering how to deregister ECS container instance? We can help you.

Here, at Bobcares, we assist our customers with several AWS queries as part of our AWS Support Services.

Today, let us discuss how we can do this.

How to deregister ECS container instance?

If you terminate a container instance in the RUNNING state, that container instance is automatically remove, or deregister, from the cluster.

However, if you terminate a container instance in the STOPPED state, that container instance isn’t automatically remove from the cluster.

Please note the below points when deregistering a container instance:

  • Each container instance has unique state information, they should not deregister from one cluster and re-register into another.

To relocate container instance resources, we recommend that you terminate container instances from one cluster and launch new container instances in the new cluster.

  • If the container instance is managed by an Auto Scaling group or a AWS CloudFormation stack, terminate the instance by updating the Auto Scaling group or AWS CloudFormation stack.

Otherwise, the Auto Scaling group or AWS CloudFormation will create a new instance after you terminate it.

  • If you terminate a running container instance with a connected Amazon ECS container agent, the agent automatically deregisters the instance from your cluster.

Stopped container instances or instances with disconnected agents are not automatically deregistered when terminated.

  • Deregistering a container instance removes the instance from a cluster, but it does not terminate the Amazon EC2 instance.

If you are finished using the instance, be sure to terminate it to stop billing.

Today, let us see the simple steps followed by our Support Techs to perform this task:

1. Firstly, open the Amazon ECS console.

2. From the navigation bar, choose the Region in which your container instance is register.

3. In the navigation pane, choose Clusters and select the cluster that hosts the container instance.

4. Then, on the Cluster : name page, choose the ECS Instances tab.

5. Next, select the container instance ID to deregister. This takes you to the container instance detail page.

6. On the Container Instance : id page, choose Deregister.

7. Then, review the deregistration message and choose Deregister.

8. Once you finish with the container instance, terminate the underlying Amazon EC2 instance.

[Need help with ECS? We’d be happy to assist you]

Conclusion

In short, we saw how our Support Techs deregister ECS container instance.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.