# OneAgent on AWS with Auto-Scaling

**URL:** <https://community.dynatrace.com/t/oneagent-on-aws-with-auto-scaling/6497>\
**Category:** Cloud platforms\
**Tags:** aws, oneagent\
**Created:** [June 13, 2017, 6:11am UTC](https://community.dynatrace.com/t/oneagent-on-aws-with-auto-scaling/6497 "2017-06-13T06:11:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![linda](https://avatars.discourse-cdn.com/v4/letter/l/67e7ee/32.png) [@linda](https://community.dynatrace.com/u/linda)\
**Post date:** [June 13, 2017, 6:11am UTC](https://community.dynatrace.com/t/oneagent-on-aws-with-auto-scaling/6497/1 "2017-06-13T06:11:28Z")

</div>

Would it be possible to configure AWS to automatically create new images with OneAgent embedded? Appreciate advise on how this can be setup. Also what would be the best practices for auto instrumentation (ie. DT services must startup before Application services)?

---

<div class="post-metadata">

**Author:** ![anton\_goosen](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/anton_goosen/32/32822_2.png) [@anton\_goosen](https://community.dynatrace.com/u/anton_goosen)\
**Post date:** [June 13, 2017, 10:07am UTC](https://community.dynatrace.com/t/oneagent-on-aws-with-auto-scaling/6497/2 "2017-06-13T10:07:05Z")

</div>

You could do this via Elastic Bean Stalk as described here: [Can I install Dynatrace via AWS Elastic Beanstalk?](https://help.dynatrace.com/infrastructure-monitoring/amazon-web-services/can-i-install-dynatrace-agent-via-aws-elastic-beanstalk/)

> **[Monitor AWS Elastic Beanstalk](https://docs.dynatrace.com/docs/ingest-from/amazon-web-services-classic/integrate-into-aws/aws-beanstalk)**
>
> Install OneAgent on AWS Elastic Beanstalk.

---

<div class="post-metadata">

**Author:** ![junda\_oo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/junda_oo/32/19677_2.png) [@junda\_oo](https://community.dynatrace.com/u/junda_oo)\
**Post date:** [June 14, 2017, 12:39am UTC](https://community.dynatrace.com/t/oneagent-on-aws-with-auto-scaling/6497/3 "2017-06-14T00:39:34Z")

</div>

Is this applicable to regular (non-PaaS) applications? I believe what Linda is referring to is for standard EC2 instances auto-scaling (IaaS) and how the DT agent is set up. Must it be included into the AMI or will the instance copy functionality work? I’m wondering about that myself.

---

<div class="post-metadata">

**Author:** ![pawel\_brzoska](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pawel_brzoska/32/18892_2.png) [@pawel\_brzoska](https://community.dynatrace.com/u/pawel_brzoska)\
**Post date:** [June 26, 2018, 8:52am UTC](https://community.dynatrace.com/t/oneagent-on-aws-with-auto-scaling/6497/4 "2018-06-26T08:52:39Z")

</div>

Hi, sorry for late reply, yes as you can see in the doc link above this uses full stack one-agent install package. AWS Beanstalk states that the .ebextensions scripts are run “whenever a server is launched in your environment”: [Advanced environment customization with configuration files (.ebextensions) - AWS Elastic Beanstalk](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions.html). I guess that also covers situations when EC2 instance is launched as a copy, however it may happen that Oneagaent is already installed there. You’d have to test how it works in your scenario.
