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
posta 6 mesi fa392 visualizzazioni
2 Risposte
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
con risposta 6 mesi fa
profile picture
ESPERTO
verificato 6 mesi fa
0
AWS
con risposta 6 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande