import json
import os
import boto3
import pdfkit
config = pdfkit.configuration(wkhtmltopdf="/opt/bin/wkhtmltopdf")
我正在使用上面的代码导入 pdfkit。我收到错误 errorMessage": "无法导入模块 'lambda_function': 没有名为 'pdfkit' 的模块"
我在 Lambda 中添加了一个层,URL arn:aws:lambda:ap-northeast-1:347599033421:layer:wkhtmltopdf-0_12_6:1