# AWS role based access monitored account

**URL:** <https://community.dynatrace.com/t/aws-role-based-access-monitored-account/51207>\
**Category:** Cloud platforms\
**Tags:** aws\
**Created:** [April 14, 2025, 7:09am UTC](https://community.dynatrace.com/t/aws-role-based-access-monitored-account/51207 "2025-04-14T07:09:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [April 14, 2025, 7:09am UTC](https://community.dynatrace.com/t/aws-role-based-access-monitored-account/51207/1 "2025-04-14T07:09:55Z")

</div>

Hi,  
while performing configuration for aws monitoring with Env AG, in the template “role\_based\_access\_monitored\_account\_template” a&nbsp;connection is made to the dynatrace account “509560245411” with role of “root”.

[cloud-snippets/aws/role-based-access/role\_based\_access\_monitored\_account\_template.yml at main · dynatrace-oss/cloud-snippets · GitHub](https://github.com/dynatrace-oss/cloud-snippets/blob/main/aws/role-based-access/role_based_access_monitored_account_template.yml)

I tried removing it and the configuration stops working.  
Do you guys know why there is a need to enter that account as well?

Regards,  
Lazaro Clark

---

<div class="post-metadata">

**Author:** ![yanezza](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yanezza/32/5036_2.png) [@yanezza](https://community.dynatrace.com/u/yanezza)\
**Post date:** [April 14, 2025, 7:45am UTC](https://community.dynatrace.com/t/aws-role-based-access-monitored-account/51207/2 "2025-04-14T07:45:22Z")

</div>

If you use your own AG to retrieve the metrics, you can replace&nbsp;509560245411 with the Account ID where your Activegate is deployed.

---

<div class="post-metadata">

**Author:** ![khoros\_anonymous](https://avatars.discourse-cdn.com/v4/letter/k/f9ae1b/32.png) [@khoros\_anonymous](https://community.dynatrace.com/u/khoros_anonymous)\
**Post date:** [April 14, 2025, 8:01am UTC](https://community.dynatrace.com/t/aws-role-based-access-monitored-account/51207/3 "2025-04-14T08:01:07Z")

</div>

Hi Yanezza,  
I had understood it that way and tried to replace it, but it didn’t work.  
Leaving that connection added by the template and adding my aws account that I wanted to monitor, it works correctly.
