# ECS fargate PaaS agent host name detection

**URL:** <https://community.dynatrace.com/t/ecs-fargate-paas-agent-host-name-detection/38216>\
**Category:** Cloud platforms\
**Tags:** aws, paas\
**Created:** [January 31, 2023, 6:41pm UTC](https://community.dynatrace.com/t/ecs-fargate-paas-agent-host-name-detection/38216 "2023-01-31T18:41:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thuang09](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@thuang09](https://community.dynatrace.com/u/thuang09)\
**Post date:** [January 31, 2023, 6:41pm UTC](https://community.dynatrace.com/t/ecs-fargate-paas-agent-host-name-detection/38216/1 "2023-01-31T18:41:47Z")

</div>

Hi there,

I am running PaaS agent (runtime injection through /api/v1/deployment/installer/agent/unix/paas/latest) on ECS Fargate container. The hostname detected is reported as ip-1-2-3-4.ec2.internal and the host has property “Cloud=EC2” attached.

 ![thuang09_0-1675190373557.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/8/b880c51fe1fd76da192928d6a4f4b3c3309080e7.png)

Based on the sample case provided on Dynatrace KB, the hostname is supposed to be detected as ECS task name.

Would you please advise what could be the problem?

Thanks!

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [April 13, 2023, 11:37am UTC](https://community.dynatrace.com/t/ecs-fargate-paas-agent-host-name-detection/38216/2 "2023-04-13T11:37:09Z")

</div>

[@thuang09](https://community.dynatrace.com/user/59155)&nbsp;do you have the KB Link? I’m curious if they forgot to include a step for a Host Rename action. You can set automatic rules to rename the hosts as you see fit.

---

<div class="post-metadata">

**Author:** ![thuang09](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@thuang09](https://community.dynatrace.com/u/thuang09)\
**Post date:** [April 13, 2023, 12:58pm UTC](https://community.dynatrace.com/t/ecs-fargate-paas-agent-host-name-detection/38216/3 "2023-04-13T12:58:45Z")

</div>

[@ChadTurner](https://community.dynatrace.com/user/14877)&nbsp;The root cause is on container “ReadOnlyRootFileSystem”. Dynatrace agent requires R/W access to temporary folder for ECS meta data processing&nbsp;. Issue fixed by binding a R/W volume to the container for such access.

Thanks!

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [April 13, 2023, 1:01pm UTC](https://community.dynatrace.com/t/ecs-fargate-paas-agent-host-name-detection/38216/4 "2023-04-13T13:01:32Z")

</div>

[@thuang09](https://community.dynatrace.com/user/59155)&nbsp;thanks for providing the update! Happy to hear you got it fixed and thrilled that its now posted in the community to help out any other users that run into a similar issue!

---

<div class="post-metadata">

**Author:** ![wai\_chan](https://avatars.discourse-cdn.com/v4/letter/w/b5e925/32.png) [@wai\_chan](https://community.dynatrace.com/u/wai_chan)\
**Post date:** [August 30, 2024, 3:38pm UTC](https://community.dynatrace.com/t/ecs-fargate-paas-agent-host-name-detection/38216/5 "2024-08-30T15:38:25Z")

</div>

[@thuang09](https://community.dynatrace.com/user/59155)&nbsp;i encounter the same issue.&nbsp; Can you share what was binded to the container?&nbsp; Thank you!
