# OneAgent in AWS AMI

**URL:** <https://community.dynatrace.com/t/oneagent-in-aws-ami/31473>\
**Category:** Cloud platforms\
**Tags:** aws, oneagent\
**Created:** [May 14, 2021, 1:41pm UTC](https://community.dynatrace.com/t/oneagent-in-aws-ami/31473 "2021-05-14T13:41:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![psdarwin](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/psdarwin/32/10172_2.png) [@psdarwin](https://community.dynatrace.com/u/psdarwin)\
**Post date:** [May 14, 2021, 1:41pm UTC](https://community.dynatrace.com/t/oneagent-in-aws-ami/31473/1 "2021-05-14T13:41:33Z")

</div>

Are there issues with baking the OneAgent into an AWS AMI, so it is included for all resulting EC2 instances?&nbsp; My first take is that there is some registration guid or hostid that’s created at install of OneAgent that would not be unique for all resulting EC2 instances, but I’m not sure how it works under the hood.

---

<div class="post-metadata">

**Author:** ![psdarwin](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/psdarwin/32/10172_2.png) [@psdarwin](https://community.dynatrace.com/u/psdarwin)\
**Post date:** [May 14, 2021, 2:24pm UTC](https://community.dynatrace.com/t/oneagent-in-aws-ami/31473/2 "2021-05-14T14:24:29Z")

</div>

I chatted with support and got this response:&nbsp;&nbsp;the IDs will be regenerated in the AMI, and this improvement was added in Version 1.197. So to answer your question, baking the OneAgent into an AWS AMI should be all good and the IDs will be taken care of, as long as the version is higher than 1.197.

---

<div class="post-metadata">

**Author:** ![vinnu\_arige\_moe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/vinnu_arige_moe/32/8903_2.png) [@vinnu\_arige\_moe](https://community.dynatrace.com/u/vinnu_arige_moe)\
**Post date:** [October 7, 2022, 5:31am UTC](https://community.dynatrace.com/t/oneagent-in-aws-ami/31473/3 "2022-10-07T05:31:41Z")

</div>

is there a good DT document on adding DT into AMI for EC2?

Vinnu
