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 個回答
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
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南