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 | |
|---|---|---|---|---|
| Assign an specific IAM role for each lambda function using a role defined in aws account | 1 | 12040 | May 24, 2017 | |
| SES Resource not added in created iAM role for Lambda functions, iamRoleStatements | 1 | 3677 | September 8, 2018 | |
| Unclear how to reference Lambda Role ARN in serverless.yml | 6 | 31753 | November 3, 2020 | |
| Existing IAM role reuse syntax/behavior | 3 | 5638 | November 14, 2016 | |
| Role ARN race condition with Lambdas in Resources section | 2 | 2310 | August 24, 2017 |