# Getting handle "accountId" in serverless config

**URL:** <https://forum.serverless.com/t/getting-handle-accountid-in-serverless-config/946>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [December 14, 2016, 6:19pm UTC](https://forum.serverless.com/t/getting-handle-accountid-in-serverless-config/946 "2016-12-14T18:19:21Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![yankeeinlondon](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/yankeeinlondon/32/244_2.png) [@yankeeinlondon](https://forum.serverless.com/u/yankeeinlondon)\
**Post date:** [December 15, 2016, 12:44am UTC](https://forum.serverless.com/t/getting-handle-accountid-in-serverless-config/946/7 "2016-12-15T00:44:26Z")

</div>

Well lots of thanks for your help. Don’t think I’d have gotten there myself. For now I’ll wildcard the **accountId** as I have the stage and region available locally in the `serverless.yml` and that’s pretty good resolution. I’ve tested and this seems to work:

```auto
Resource: 
    - "arn:aws:lambda:${self:custom.region}:*:function:serverless-event-${self:custom.stage}-*"

```

---

_[View the full topic](https://forum.serverless.com/t/getting-handle-accountid-in-serverless-config/946)._
