# AWS EC2 AMI Activegate and OneAgent Communication route

**URL:** <https://community.dynatrace.com/t/aws-ec2-ami-activegate-and-oneagent-communication-route/50482>\
**Category:** Cloud platforms\
**Tags:** activegate, aws, oneagent\
**Created:** [February 27, 2025, 8:16am UTC](https://community.dynatrace.com/t/aws-ec2-ami-activegate-and-oneagent-communication-route/50482 "2025-02-27T08:16:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shirai](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/shirai/32/27711_2.png) [@Shirai](https://community.dynatrace.com/u/Shirai)\
**Post date:** [February 27, 2025, 8:16am UTC](https://community.dynatrace.com/t/aws-ec2-ami-activegate-and-oneagent-communication-route/50482/1 "2025-02-27T08:16:43Z")

</div>

Hi.

I included OneAgent in an AWS EC2 AMI and deployed it as another EC2 instance.  
OneAgent appeared to be functioning properly. However, when I checked the Deployment status, I noticed that it said “Currently used ActiveGate none (Direct communication)”. ActiveGate is installed in this environment.  
Has anyone had the same experience?

 ![Shirai_1-1740643821951.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5332e1efc5afdf8df300e89102973c1b4aad0d5c.png)

Toshimasa Shirai.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [February 27, 2025, 1:14pm UTC](https://community.dynatrace.com/t/aws-ec2-ami-activegate-and-oneagent-communication-route/50482/2 "2025-02-27T13:14:12Z")

</div>

Hi,

I see when ActiveGate is not being used and it is send to SaaS tenant directly.

Do you have some ActiveGate with AWS module enabled?

Are you using network zones?

Best regards

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [February 27, 2025, 1:37pm UTC](https://community.dynatrace.com/t/aws-ec2-ami-activegate-and-oneagent-communication-route/50482/3 "2025-02-27T13:37:14Z")

</div>

The new EC2 instance is able to reach the activeGate?  
If you run ongentctl --get-server, Can you see the AG?

> **[OneAgent configuration via command-line interface](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/oneagent-configuration-via-command-line-interface)**
>
> Learn how to perform some OneAgent configuration tasks without the need to reinstall OneAgent.

---

<div class="post-metadata">

**Author:** ![Shirai](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/shirai/32/27711_2.png) [@Shirai](https://community.dynatrace.com/u/Shirai)\
**Post date:** [March 4, 2025, 1:36am UTC](https://community.dynatrace.com/t/aws-ec2-ami-activegate-and-oneagent-communication-route/50482/4 "2025-03-04T01:36:24Z")

</div>

[@PacoPorro](https://community.dynatrace.com/user/40713)&nbsp;[@AntonPineiro](https://community.dynatrace.com/user/58682)

Thank you for your comment.  
When I checked the results of executing ongentctl --get-server, I was able to confirm that I was connected directly to the Dynatrace environment without going through AG.  
I then found that the route to connect directly from OneAgent and the route via AG were enabled.
