Created
August 6, 2019 13:37
-
-
Save jzpeepz/534848adeff9126011a8821f5205aae2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
require __DIR__.'/vendor/autoload.php'; | |
lambda(function (array $event) { | |
return 'Hello ' . ($event['name'] ?? 'world'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: app | |
provider: | |
name: aws | |
region: us-east-1 | |
runtime: provided | |
plugins: | |
- ./vendor/bref/bref | |
functions: | |
website: | |
handler: index.php | |
description: '' | |
layers: | |
- ${bref:layer.php-73-fpm} | |
events: | |
- http: 'ANY /' | |
- http: 'ANY /{proxy+}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment