You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While it's good that this permission is scoped to only the single log group resource, I wonder if we should scope down the actions Lambda functions have access to, by default? Based on other examples, it seems like the only actions required for typical log-writing functionality are:
👍 I'd just run out a check that everything works as intended before merging. All the Lambda walkthroughs I've read tell you to assign logs:* on resource * (which is one reason to use this shortcut in the first place), though I think that if the log group already exists then you're right about only needing these 3 actions.
The Lambda shortcut in this repo currently grants
logs:*
access, i.e. access to all actions for the log group created by this shortcut:cloudfriend/lib/shortcuts/lambda.js
Lines 147 to 151 in 05aa50b
While it's good that this permission is scoped to only the single log group resource, I wonder if we should scope down the actions Lambda functions have access to, by default? Based on other examples, it seems like the only actions required for typical log-writing functionality are:
Any reasoning or discussion surrounding scoping down
logs:*
permissions?/cc: @rclark @williamhammond
The text was updated successfully, but these errors were encountered: