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 | 31701 | November 3, 2020 | |
Referencing resource ARNs in environment variables | 1 | 1855 | June 25, 2022 | |
SES Resource not added in created iAM role for Lambda functions, iamRoleStatements | 1 | 3664 | September 8, 2018 | |
Assign an specific IAM role for each lambda function using a role defined in aws account | 1 | 12028 | May 24, 2017 | |
Is It Possible to Reference CFN Outputs in iamRoleStatements? | 3 | 2274 | June 22, 2019 |