I would like to reference the ARN of the role that is automatically generated for a function according to its iamRoleStatements. The reason I want to do this is so that I can add it to an ElasticSearch AccessPolicy. I know that I can define the role as a separate resource and reference it in both places but I would prefer not to do it. Is there any way I can achieve what I want?
Related Topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Unclear how to reference Lambda Role ARN in serverless.yml | 6 | 30792 | November 3, 2020 | |
Is it wrong that how to attach IAM Role to Lambda on the page "AWS Lambda Guide - IAM"? | 0 | 620 | July 21, 2020 | |
Assign Role For Each Function with a role defined in aws account in Serverless Framework | 0 | 522 | December 28, 2018 | |
Don't create default lambdaRole when deploying serverless | 0 | 847 | June 11, 2020 | |
Role ARN race condition with Lambdas in Resources section | 2 | 2223 | August 24, 2017 |