# Rancher Host Amazon ECS

**URL:** <https://forums.suse.com/t/rancher-host-amazon-ecs/6907>\
**Category:** Rancher 1.x\
**Created:** [July 20, 2017, 3:15pm UTC](https://forums.suse.com/t/rancher-host-amazon-ecs/6907 "2017-07-20T15:15:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwarder](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jwarder](https://forums.suse.com/u/jwarder)\
**Post date:** [July 20, 2017, 3:15pm UTC](https://forums.suse.com/t/rancher-host-amazon-ecs/6907/1 "2017-07-20T15:15:06Z")

</div>

Hi,

I have a Rancher Sever deployed on AWS using ECS and auto-scaling groups. This works great however I’m creating a second ECS cluster for my Rancher Hosts in which I have an ECS task definition for the rancher/agent container, this is getting scheduled but because it only runs for a short period of time ECS keeps re-scheduling each time it stops causing multiple rancher/agents containers on the hosts. Does anyone know a way round this or should I be using an alternative method all together for running the agent?

Thanks for any assistance

---

<div class="post-metadata">

**Author:** ![RVN\_BR](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rvn_br/32/2842_2.png) [@RVN\_BR](https://forums.suse.com/u/RVN_BR)\
**Post date:** [October 25, 2017, 7:07pm UTC](https://forums.suse.com/t/rancher-host-amazon-ecs/6907/2 "2017-10-25T19:07:26Z")

</div>

Apologies if this is a very stupid question, but can rancher allocate containers on ECS? Or is there a guide for running the current “most used config” (i.e. k8s) on AWS using ECS only or ECS/EC2 combination?

My understanding from the tutorials is the Rancher server runs as a container service straight on ECS, but the rancher administered hosts are still running under EC2, is that correct? Does anyone have a link to a tutorial which is still valid? There are a few screencasts and tutorials but I cant seem to pinpoint which is the “current” one?
