# AWS monitoring setup: How to configure a proxy for ActiveGate deployed on an EC2 instance, with an attached IAM role?

**URL:** <https://community.dynatrace.com/t/aws-monitoring-setup-how-to-configure-a-proxy-for-activegate-deployed-on-an-ec2-instance-with-an-attached-iam-role/43134>\
**Category:** Troubleshooting\
**Tags:** activegate, aws, dynatrace-managed\
**Created:** [December 13, 2023, 9:40pm UTC](https://community.dynatrace.com/t/aws-monitoring-setup-how-to-configure-a-proxy-for-activegate-deployed-on-an-ec2-instance-with-an-attached-iam-role/43134 "2023-12-13T21:40:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karolinaboba](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/karolinaboba/32/19761_2.png) [@karolinaboba](https://community.dynatrace.com/u/karolinaboba)\
**Post date:** [December 13, 2023, 9:40pm UTC](https://community.dynatrace.com/t/aws-monitoring-setup-how-to-configure-a-proxy-for-activegate-deployed-on-an-ec2-instance-with-an-attached-iam-role/43134/1 "2023-12-13T21:40:00Z")

</div>

If you configure a proxy for an ActiveGate deployed on an EC2 instance with an attached IAM role, you must ensure that you exempt the address used to access the instance metadata. The address to exempt is the IP address of the instance metadata service,&nbsp;`169.254.169.254`. This address is always the same and does not depend on the instance.  
In the&nbsp;[appropriate section](https://docs.dynatrace.com/docs/setup-and-configuration/dynatrace-activegate/configuration/set-up-proxy-authentication-for-activegate)&nbsp;of&nbsp;your ActiveGate communication settings, specify&nbsp;`proxy-non-proxy-hosts = 169.254.169.254`.  
For example:

```markup
[http.client]
proxy-non-proxy-hosts = 169.254.169.254

```

---

<div class="post-metadata">

**Author:** ![patmis](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patmis/32/23678_2.png) [@patmis](https://community.dynatrace.com/u/patmis)\
**Post date:** [February 5, 2025, 12:15pm UTC](https://community.dynatrace.com/t/aws-monitoring-setup-how-to-configure-a-proxy-for-activegate-deployed-on-an-ec2-instance-with-an-attached-iam-role/43134/2 "2025-02-05T12:15:50Z")

</div>

[@karolinaboba](https://community.dynatrace.com/user/66955)

Hi Karolina,

Is this still valid?

Best Regards,  
Patrick
