How to restart containers in AWS ECS?

I provided the application configuration through the consul key storage for application containers running on ECS.

An application reads its configuration from the consul only once at startup.

When I need to change the configuration, how do I need to restart the containers to update the application configuration?

I hope to do this programmatically through aws cli.

+4
source share
1 answer

You do not restart containers. However, you can stop individual tasks, and ECS will repeat another instance of your task somewhere in the cluster.

+5
source

Source: https://habr.com/ru/post/1674379/


All Articles