Stop ECS cluster temporarily

Jiew Meng picture Jiew Meng · Aug 15, 2017 · Viewed 9.8k times · Source

I want to stop EC2 instances after office hours to save costs. How can I do the same with ECS instances? Even if I stop all tasks/services, the instance is still there? Do I stop the EC2 instance directly?

Answer

Kerem Baydoğan picture Kerem Baydoğan · May 16, 2018

From EC2 Management Console

  1. Click Auto Scaling Groups from the left menu.
  2. Select the group from the list.
  3. Click edit on the details tab.
  4. Set desired property to '0'.

After clicking save it is all done.

The Auto Scaling Group is smart enough to shut down all instances.

enter image description here