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 | 31475 | November 3, 2020 | |
Custom Authorizer ARN reference | 15 | 15379 | October 10, 2019 | |
Invoke lambda arn for lambda in same file | 1 | 1976 | April 2, 2020 | |
Is it wrong that how to attach IAM Role to Lambda on the page "AWS Lambda Guide - IAM"? | 0 | 674 | July 21, 2020 | |
Assign Role For Each Function with a role defined in aws account in Serverless Framework | 0 | 599 | December 28, 2018 |