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
gefragt vor 6 Monaten392 Aufrufe
2 Antworten
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
beantwortet vor 6 Monaten
profile picture
EXPERTE
überprüft vor 6 Monaten
0
AWS
beantwortet vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen