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
asked 5 months ago385 views
2 Answers
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
answered 5 months ago
profile picture
EXPERT
reviewed 5 months ago
0
AWS
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions