# Unclear how to reference Lambda Role ARN in serverless.yml

**URL:** <https://forum.serverless.com/t/unclear-how-to-reference-lambda-role-arn-in-serverless-yml/1147>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [January 19, 2017, 9:24pm UTC](https://forum.serverless.com/t/unclear-how-to-reference-lambda-role-arn-in-serverless-yml/1147 "2017-01-19T21:24:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rowanu](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/rowanu/32/75_2.png) [@rowanu](https://forum.serverless.com/u/rowanu)\
**Post date:** [January 21, 2017, 3:53am UTC](https://forum.serverless.com/t/unclear-how-to-reference-lambda-role-arn-in-serverless-yml/1147/3 "2017-01-21T03:53:30Z")

</div>

Because you’re trying to use the ARN in the `resources` section (which is just CloudFormation) you can use the intrinsic function [`GetAtt`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).

Here’s what you need for your RoleARN:

```auto
RoleARN:
  Fn::GetAtt: [IamRoleLambdaExecution, Arn]

```

---

_[View the full topic](https://forum.serverless.com/t/unclear-how-to-reference-lambda-role-arn-in-serverless-yml/1147)._
