Skip to content

Commit

Permalink
Update readme.md (#32)
Browse files Browse the repository at this point in the history
Added some information for AWS Lambda usage. Came across the permissions like described.
  • Loading branch information
Martenvanurk authored Oct 5, 2021
1 parent 9844a98 commit df17fc8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ You can use laravel's default `\Log` class to use this

`\Log::info('user logged in', ['id' => 123, 'name' => 'Naren']);`

### Usage with AWS Lambda

Make sure the AWS Lambda template contains an IAM role with enough access.
So think about Logs:CreateLogGroup, Logs:DescribeLogGroups, Logs:CreateLogStream, Logs:DescribeLogStream, Logs:PutRetentionPolicy and Logs:PutLogEvents

### Config

Config for logging is defined at `config/logging.php`. Add `cloudwatch` to the `channels` array
Expand Down

0 comments on commit df17fc8

Please sign in to comment.