# Run all functions in a stage under the same execution role

**URL:** <https://forum.serverless.com/t/run-all-functions-in-a-stage-under-the-same-execution-role/15440>\
**Category:** Serverless Framework\
**Tags:** lambda, iam\
**Created:** [June 29, 2021, 10:08pm UTC](https://forum.serverless.com/t/run-all-functions-in-a-stage-under-the-same-execution-role/15440 "2021-06-29T22:08:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwalkerphonesoap](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/jwalkerphonesoap/32/5665_2.png) [@jwalkerphonesoap](https://forum.serverless.com/u/jwalkerphonesoap)\
**Post date:** [June 29, 2021, 10:08pm UTC](https://forum.serverless.com/t/run-all-functions-in-a-stage-under-the-same-execution-role/15440/1 "2021-06-29T22:08:04Z")

</div>

Hi there. I have a question about roles. I would like to set up all the functions within an application to run under one execution role.  
Reading through this page

> **[Serverless Framework - AWS Lambda Guide - IAM](https://www.serverless.com/framework/docs/providers/aws/guide/iam/)**
>
> How to manage your AWS Lambda functions and their AWS infrastructure resources easily with the Serverless Framework.

it appears that I can do this by assigning the role ARN to `provider.iam.role` in serverless.yml

First, can someone confirm that I’m understanding that correctly?

Second, what I actually want to do it have all functions within a given stage run on the same execution role. I.e. all dev functions run on execution role “X” and all production functions run on execution role “Y”.

Is this posslble? I can’t see any documentation anywhere that would tell me how to do this.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![jwalkerphonesoap](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/jwalkerphonesoap/32/5665_2.png) [@jwalkerphonesoap](https://forum.serverless.com/u/jwalkerphonesoap)\
**Post date:** [August 19, 2021, 10:43pm UTC](https://forum.serverless.com/t/run-all-functions-in-a-stage-under-the-same-execution-role/15440/2 "2021-08-19T22:43:02Z")

</div>

Turns out serverless does this out of the box and I just wasn’t paying attention.
