2017 © Pedro Peláez
 

library php-composer-on-aws-lambda

Run your Application on AWS Lambda

image

pauljulio/php-composer-on-aws-lambda

Run your Application on AWS Lambda

  • Wednesday, February 1, 2017
  • by PaulJulio
  • Repository
  • 1 Watchers
  • 4 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Composer Package for running your Application on AWS Lambda

Let's hit those 5 W's, (*1)

Who

  • Paul Hulett paulhulett@gmail.com
  • https://github.com/PaulJulio
  • https://linkedin.com/in/paulhulett
  • https://twitter.com/paulhulett
  • https://facebook.com/paulhulett

Where

https://github.com/PaulJulio/php-composer-on-aws-lambda, (*2)

When

In early 2016 I became interested in using Amazon's Lambda service for internet-of-things API applications, mainly because of the difficulty of implementing my Amazon Echo app outside of Amazon's stack (as of this writing, Amazon still does not support the SNI standard for HTTPS)., (*3)

What

The goal of this project is to enable the use of a standard LAMP application constructed around the Composer Package dependency system within the AWS Lambda runtime environment. It is being set up in such a way that it is easily updated should any of the Amazon Labmda architecture get updated, particularly the virtual machines that serve as the host machine., (*4)

I am specifically not embedding any compiled library in this repo because, (*5)

  • If you can't spin up an AWS virtual machine using the provided scripts, you are not in the target audience
  • Chances are, any advanced project will need other compiled binaries, so the initial steps will be required anyway
  • Chances are, any advanced project will need to change the php binary that is installed to include more/less functionality
  • It doesn't sound like a good idea to me
  • I don't want to be responsible for your binary file

How

As of this writing, I have the following sketch of a process:, (*6)

  • Add this package to your project via composer
  • Use the provided utilities to spin up an AWS VM that mirrors what you will run on in Lambda DONE
  • From that machine, install this project via git DONE
  • On the AWS machine, use the provided utilities to compile PHP
  • Download the binary to your project
  • Use the provided utilities to package up your project for use on Lambda
  • Submit your project to Lambda

Update: - Amazon has published an official post on how to get PHP up and running on Lambda: Scripting Languages for AWS Lambda, (*7)

Nice to have:, (*8)

  • Do all that remote stuff via locally executed utilities. (In progress, using a package to send commands to the remote machine)

The Versions

01/02 2017

dev-master

9999999-dev

Run your Application on AWS Lambda

  Sources   Download

GNU GPL V3

The Requires

 

The Development Requires

by Avatar PaulJulio