# Installing AWX on ECS

**URL:** <https://forum.ansible.com/t/installing-awx-on-ecs/29829>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [March 5, 2019, 9:58pm UTC](https://forum.ansible.com/t/installing-awx-on-ecs/29829 "2019-03-05T21:58:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CV1](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@CV1](https://forum.ansible.com/u/CV1)\
**Post date:** [March 5, 2019, 9:58pm UTC](https://forum.ansible.com/t/installing-awx-on-ecs/29829/1 "2019-03-05T21:58:46Z")

</div>

Hi,

I am trying to get AWX running on ECS. All of the containers say running, but the awx\_task container has an error:

> …
> 
> me = instance or [Instance.objects.me](http://Instance.objects.me)()
> 
> File “/var/lib/awx/venv/awx/lib64/python3.6/site-packages/awx/main/managers.py”, line 88, in me
> 
> raise RuntimeError(“No instance found with the current cluster host id”)
> 
> **RuntimeError: No instance found with the current cluster host id**
> 
> 2019-03-05 20:02:33,127 INFO exited: dispatcher (exit status 1; not expected)
> 
> …

I have defined the following variables for the awx\_task container with the value of “awx”: awx\_task\_hostname, cluster\_host\_id, host\_cluster\_id, and hostname trying to get this to work.

In the web UI, the task instance just shows up as “unavailable” under capacity.

Not sure what else to try here, any help would be appreciated.

I am using version 3.0.1.0 pulled from dockerhub and running on fargate. It seems like all of the other containers come up ok, and I can log into the web UI. I used this guide as a starting point

[https://lreed.net/post/2017-12-14-awx-fargate-1/](https://lreed.net/post/2017-12-14-awx-fargate-1/) and [https://lreed.net/post/2017-12-16-awx-fargate-2/](https://lreed.net/post/2017-12-16-awx-fargate-2/)

---

<div class="post-metadata">

**Author:** ![Uriel](https://avatars.discourse-cdn.com/v4/letter/u/53a042/32.png) [@Uriel](https://forum.ansible.com/u/Uriel)\
**Post date:** [March 5, 2019, 11:14pm UTC](https://forum.ansible.com/t/installing-awx-on-ecs/29829/2 "2019-03-05T23:14:33Z")

</div>

Cluster host ID isn’t something that is set by environment variable – on swarm it’s simply always “awx” on Kubernetes it’s awx-_-_. I don’t know much about Fargate but can you exec into the task container and just echo the hostname to see what it is and make sure it was actually set?

Also, check earlier in the task container’s logs. It’s possible that the launch script failed to provision the instance and register its queue all together.
