# Guide for running PMM containers in AWS ECS

**URL:** <https://forums.percona.com/t/guide-for-running-pmm-containers-in-aws-ecs/5176>\
**Category:** PMM 1.x\
**Created:** [October 27, 2016, 8:11am UTC](https://forums.percona.com/t/guide-for-running-pmm-containers-in-aws-ecs/5176 "2016-10-27T08:11:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjeronimo](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jjeronimo](https://forums.percona.com/u/jjeronimo)\
**Post date:** [October 27, 2016, 8:11am UTC](https://forums.percona.com/t/guide-for-running-pmm-containers-in-aws-ecs/5176/1 "2016-10-27T08:11:51Z")

</div>

I’m having issues when running pmm-server. It dies after respawning several times dashboard-upgrade:

INFO exited: dashboard-upgrade (exit status 1; not expected)

I think it is related to shared volumes and “persistent data volumes” in ECS ([url][http://docs.aws.amazon.com/AmazonECS/latest/developerguide/using\_data\_volumes.html[/url]](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html%5B/url%5D))

Does anyone knows how to setup pmm-server in ECS using persistent data volumes so that pmm-data volumes are persisted to an EBS?

Thank you.

---

<div class="post-metadata">

**Author:** ![weber](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@weber](https://forums.percona.com/u/weber)\
**Post date:** [October 27, 2016, 8:45am UTC](https://forums.percona.com/t/guide-for-running-pmm-containers-in-aws-ecs/5176/2 "2016-10-27T08:45:05Z")

</div>

It is okay when some subprocesses respawn, they have to finish finally with the expected exit code. The reason some processes depend on mysql which sometimes starts later but it’s not a problem at all.

I have tried running PMM Server on Amazon ECS myself, I got success running “pmm-server” container. However, it was not clear to me what to do with the data volumes. Looks like “pmm-data” container is something not suitable for ECS, as all containers there should be disposable there (one off tasks). So I assume you have to manage volumes manually. Then it’s a question how to create them w/o being initialized first on the pmm-server image.

It seems to me it’s easier to install docker on EC2 and spin up containers yourself. You probably don’t need to scale “pmm-server” in the way ECS designed for (web/app front/end backends).
