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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠