I've set up integration with AWS ECS, created a Cloud Profile. When I enable Cloud Profile for the first time, it creates 1 task in ECS and Agent then becomes registered with TeamCity.
if I disable the profile (with "terminate 1 instance" option on) and then re-enable it, no more tasks will be started and no agents created. I noticed that stopped agent will be shown in Agents -> cloud tab under my cloud profile.
I tried it with different "max instance" counts and other settings, it seems to not make any difference.
I'd expect at least one agent to be always running for the enabled profile, or am I missing something?