When I test the lambda function , I get the below error .

0

Error : "body": "{"error":{"root_cause":[{"type":"security_exception","reason":"no permissions for [indices:data/read/search] and User [name=arn:aws:iam::xxxxxx:role/service-role/testFunction-role-ibetjiy0 I appreciate your answers to resolve this. ** Please note I have AWSLambda_FullAccess

Thanks in advance

Kumuda
已提問 6 個月前檢視次數 392 次
2 個答案
0

Hello,

When you create a lambda function you need to role to access resource/service. https://docs.aws.amazon.com/lambda/latest/dg/lambda-permissions.html

looks the error is from opensearch. if so, refer below. https://docs.aws.amazon.com/opensearch-service/latest/developerguide/search-example.html

Thanks.

AWS
已回答 6 個月前
profile picture
專家
已審閱 6 個月前
0
AWS
已回答 6 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南