Unclear how to reference Lambda Role ARN in serverless.yml

Because you’re trying to use the ARN in the resources section (which is just CloudFormation) you can use the intrinsic function GetAtt.

Here’s what you need for your RoleARN:

RoleARN:
  Fn::GetAtt: [ IamRoleLambdaExecution, Arn ]
1 Like