[SVLS-8314] add lambda cloudwatch command#2097
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
9061911 to
023d83b
Compare
This comment has been minimized.
This comment has been minimized.
duncanista
left a comment
There was a problem hiding this comment.
This looks great, wondering if it would make sense to not make it Lambda specific? I know right now we are just disabling for Lambda functions, but is there a world where we add more services where we disable CWL?
Good question -- I can't think of anything immediately, is this something we'd want to do for something like ECR? or were there other AWS products you were thinking of? Update: We chatted offline, and there aren't any other resource types that we'd need to handle that would also have cloudwatch logs enabled by default |
5c87826 to
262be3d
Compare
lambda cloudwatch command

What and why?
This PR adds a new
lambda cloudwatchcommand to the Lambda plugin that acceptsenableordisableas an action. This allows users to disable CloudWatch Logs for Lambda functions by attaching a deny IAM policy, and re-enable them by removing that policy. This provides a way to control CloudWatch logging costs while maintaining Lambda function operation.How?
LambdaCloudwatchCommandthat takes an action parameter (enableordisable)Testing
Note, for all commands below, alias:
Dry run:
Live test:
Example notebook
Review checklist