# Unable to onboard ECS Fargate to Dynatrace using Run time injection method

**URL:** <https://community.dynatrace.com/t/unable-to-onboard-ecs-fargate-to-dynatrace-using-run-time-injection-method/41839>\
**Category:** Cloud platforms\
**Tags:** aws\
**Created:** [September 28, 2023, 7:21pm UTC](https://community.dynatrace.com/t/unable-to-onboard-ecs-fargate-to-dynatrace-using-run-time-injection-method/41839 "2023-09-28T19:21:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ManasaM](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@ManasaM](https://community.dynatrace.com/u/ManasaM)\
**Post date:** [September 28, 2023, 7:21pm UTC](https://community.dynatrace.com/t/unable-to-onboard-ecs-fargate-to-dynatrace-using-run-time-injection-method/41839/1 "2023-09-28T19:21:42Z")

</div>

Iam trying to onboard ECS services with Fargate launch type. Followed the [Run time injection](https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-cloud-platforms/amazon-web-services/amazon-web-services-integrations/aws-fargate#expand--runtime-injection--3) method as per the documentation. Also,&nbsp;defined&nbsp;&nbsp;DT\_LOGLEVELCON&nbsp;with the value&nbsp;INFO&nbsp;. In the logs, I don’t see any specific error related to One agent deployment failure. But the FG Service doesn’t&nbsp; show up on Dynatrace.&nbsp;  
I have followed the same steps and was able to onboard ECS FG services from one of our cloud accounts, but unable to onboard the services from other accounts now.

Attached cloudwatch logs and Task definition created with one agent run time injection method.

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [September 28, 2023, 8:28pm UTC](https://community.dynatrace.com/t/unable-to-onboard-ecs-fargate-to-dynatrace-using-run-time-injection-method/41839/2 "2023-09-28T20:28:08Z")

</div>

I edited your post because you were publicly sharing your PaaS token.

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [September 28, 2023, 8:39pm UTC](https://community.dynatrace.com/t/unable-to-onboard-ecs-fargate-to-dynatrace-using-run-time-injection-method/41839/3 "2023-09-28T20:39:48Z")

</div>

Hi [@ManasaM](https://community.dynatrace.com/user/67295). Please check if you are using Alpine images because you select in options flavor=musl&include=all

---

<div class="post-metadata">

**Author:** ![ManasaM](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@ManasaM](https://community.dynatrace.com/u/ManasaM)\
**Post date:** [September 28, 2023, 8:48pm UTC](https://community.dynatrace.com/t/unable-to-onboard-ecs-fargate-to-dynatrace-using-run-time-injection-method/41839/4 "2023-09-28T20:48:39Z")

</div>

Hi Daniel. Thank you for your response. For the oneagent container image I’ve provided " **alpine:3".** &nbsp;Is there anything else that I’m missing?

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [September 28, 2023, 8:58pm UTC](https://community.dynatrace.com/t/unable-to-onboard-ecs-fargate-to-dynatrace-using-run-time-injection-method/41839/5 "2023-09-28T20:58:46Z")

</div>

Assuming that you follow the procedure step by step, try to change this:

- DT\_ONEAGENT\_OPTIONS- this is the flavor (valid options are default or musl for Alpine images) and the technology (code module).
  - Syntax for default is flavor=default&include=all.
  - Syntax for musl is flavor=musl&include=all.

Have in mind that your install-oneagent is alpine but may be others you are trying to set with OA are not.

You have set the musl in Options but maybe the Fargate containers are different.

---

<div class="post-metadata">

**Author:** ![ManasaM](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@ManasaM](https://community.dynatrace.com/u/ManasaM)\
**Post date:** [September 29, 2023, 7:14pm UTC](https://community.dynatrace.com/t/unable-to-onboard-ecs-fargate-to-dynatrace-using-run-time-injection-method/41839/6 "2023-09-29T19:14:49Z")

</div>

Thanks for the suggestion. Initially&nbsp;DT\_ONEAGENT\_OPTIONS was set to&nbsp;flavor=musl&include=all and that worked without any issues for all services running node image&nbsp; **alpine.** The other services I was trying to onboard were not running on Debian Linux. And setting the DT\_ONEAGENT\_OPTIONS to flavor=default&include=all worked.
