Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Jan 1, 2019
1 parent 4e4d8fb commit 70d3e43
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ The basics of using [Serverless Framework][1] for AWS Lambda PHP applications.

## Notes

1. Create php binary by following steps in `doc/create_php_binary.md`
2. Write your serverless application (!)
2. sls deploy
3. sls invoke -f hello -l
1. Install Serverless Framework by following the [Quick Start][2]
2. Set up your [AWS credentials][3]
3. Create php binary by following steps in [`doc/create_php_binary.md`][4]
4. Write your serverless application (!) - the default is in `handler.php`
5. Run `sls deploy` to deploy to Lambda
6. Run `sls invoke -f hello -l` to invoke your function

## PHP handler function signature

Expand All @@ -25,3 +27,6 @@ Hello world looks like:


[1]: https://serverless.com
[2]: https://serverless.com/framework/docs/providers/aws/guide/quick-start/
[3]: https://serverless.com/framework/docs/providers/aws/guide/credentials/
[4]: doc/create_php_binary.md
5 changes: 5 additions & 0 deletions doc/create_php_binary.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@
(Replace `{ipaddress}` with the IP address of your EC2 instance)

3. Shutdown the EC2 instance


(Full details in [AWS Lambda Custom Runtime for PHP: A Practical Example][1])

[1]: https://aws.amazon.com/blogs/apn/aws-lambda-custom-runtime-for-php-a-practical-example/

0 comments on commit 70d3e43

Please sign in to comment.