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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ