Access denied with lambda function and puppeteer

0

I'm using a lambda function to visit a web site with puppeteer. From local pc I'm able to visit the site but when I launch the code in lambda function I receive this error: "Access denied. You don't have the permission to access 'sitedomain' on this server. Reference #18".

Because I'm able to performe the action from local I guess it is because some connection setting/parameter that is different when I use lambda. I have the default connection setting with my lambda function, I didn't change anything about connection configuration.

Can someone help me please? What I can do?

1 Resposta
0

Hi - Please refer to this blog which has deployable example for the case. seems to me more of permissioning issue. https://aws.amazon.com/blogs/architecture/field-notes-scaling-browser-automation-with-puppeteer-on-aws-lambda-with-container-image-support/

profile pictureAWS
ESPECIALISTA
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas