PHP in Amazon Lambda

Clone or Download this GitHub Repo https://github.com/svnlabs/aws-lambda-php-template Make new folder lambda in current working directory of EC2 server # mkdir lambda Upload 2 files from zip to Amazon EC2 server Instance in folder lambda lambda – index.js – php (binary) index.js ‘use strict’; exports.handler = function(event, context, callback) { var exec = require(‘child_process’).exec; exec(‘./php -v’, … Read more