# Mapping Management Zone Rule for Lambda each AWS Account

**URL:** <https://community.dynatrace.com/t/mapping-management-zone-rule-for-lambda-each-aws-account/42181>\
**Category:** Cloud platforms\
**Tags:** management-zones, aws, lambda\
**Created:** [October 19, 2023, 8:28am UTC](https://community.dynatrace.com/t/mapping-management-zone-rule-for-lambda-each-aws-account/42181 "2023-10-19T08:28:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abnerlusung](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@abnerlusung](https://community.dynatrace.com/u/abnerlusung)\
**Post date:** [October 19, 2023, 8:28am UTC](https://community.dynatrace.com/t/mapping-management-zone-rule-for-lambda-each-aws-account/42181/1 "2023-10-19T08:28:31Z")

</div>

Hi all,

Our teams needs to create one management zone per AWS Account.

Each MZ should pick up the Lambda Services.

Question is, how to add the ARN inside the metricSelector or AWS Account ID inside the Monitored Entity Services?

This is my sample Entity properties and I want to use publicCloudId as my ARN.

```markup
"properties": {
    "serviceType": "RPC_SERVICE",
    "detectedName": "demo-name in ap-southeast-1",
    "isExternalService": false,
    "publicCloudRegion": "ap-southeast-1",
    "publicCloudId": "arn‌‌lambda:ap-southeast-1:123456789:function:demo-name",
    "softwareTechnologies": [
      {
        "type": "NODE_JS"
      },
      {
        "type": "AWS_LAMBDA"
      }
    ],
    "agentTechnologyType": "N/A"
  },

```

Best Regards,

Abner

---

<div class="post-metadata">

**Author:** ![avdveen](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@avdveen](https://community.dynatrace.com/u/avdveen)\
**Post date:** [October 24, 2023, 10:36am UTC](https://community.dynatrace.com/t/mapping-management-zone-rule-for-lambda-each-aws-account/42181/2 "2023-10-24T10:36:39Z")

</div>

Hello&nbsp;[@abnerlusung](https://community.dynatrace.com/user/58264), if I understand your requirement correctly, this thread may be of help, specifically [Adam’s reply](https://community.dynatrace.com/post/181473).

I’ve not tested it myself, but it seems possible to use the ARN to create a tag, and then use that tag for your Mgmt Zone setup.

---

<div class="post-metadata">

**Author:** ![abnerlusung](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@abnerlusung](https://community.dynatrace.com/u/abnerlusung)\
**Post date:** [October 25, 2023, 6:02am UTC](https://community.dynatrace.com/t/mapping-management-zone-rule-for-lambda-each-aws-account/42181/3 "2023-10-25T06:02:18Z")

</div>

Thanks&nbsp;[@andre\_vdveen](https://community.dynatrace.com/user/11931)&nbsp;,

Right now, I created a support ticket based from this&nbsp;discussion. The requirement is actually similar.

[https://community.dynatrace.com/t5/Open-Q-A/MetricSelector-for-Properties-Attribute/td-p/225926](https://community.dynatrace.com/topic/225926)
