将PHP部署到AWS Lambda

时间:2019-11-29 14:36:04

标签: php amazon-web-services aws-lambda

我使用此指南在asw lambda上部署代码: https://cwhite.me/hosting-a-laravel-application-on-aws-lambda/

var spawn = require('child_process').spawn;
var parser = require('http-string-parser');

exports.handler = function(event, context) {
    // Sets some sane defaults here so that this function doesn't fail when it's not handling a HTTP request from
    });
};

这部分代码可帮助执行php。但是我在lambda函数中出错:

  

找不到模块“ http-string-parser”

您能帮助我解决此问题吗?

0 个答案:

没有答案