Skip to content
Software Engineering Stories
Go back

Minimalistic AWS SAM PHP

AWS SAM PHP

Automates a serverless PHP Lambda implementation ready production, including CI/CD.

The PHP Lambda function generates a JSON response {"status":"OK."}.

Showcase code

When & Why

Use this as a template to quickstart a serverless PHP based service.

Implementation Details

Use Bref Runtimes Layers, for running PHP on Lambda.

template.yaml fromrdok/aws-sam-php at813eef2raw
Type: AWS::Serverless::Function
Properties:
  CodeUri: src/
  Layers: ["arn:aws:lambda:eu-west-1:209497400698:layer:php-80:9"]
  Handler: main.php

Composer


Share this post:

Previous Post
What are the least privileges required for AWS SAM?
Next Post
Serverless GraphQL Implementation