I think he means that rather than have an EC2 instance running the server and agent Docker images, you could use ECS to run them independently.
It would also be worth considering a Docker-based approach to agent provisioning per-build. Ephemeral agents, in my opinion, are critical to a reliable build pipeline.