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 Antwort
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
EXPERTE
beantwortet vor einem Jahr

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