Skip to content

Instantly share code, notes, and snippets.

@kapilt
Last active October 17, 2016 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kapilt/d2dafed9b41c0578cc3e118f3ec03f5b to your computer and use it in GitHub Desktop.
Save kapilt/d2dafed9b41c0578cc3e118f3ec03f5b to your computer and use it in GitHub Desktop.
policies:
- name: all-lambdas
resource: lambda
- name: custodian-lambdas
resource: lambda
filters:
- type: value
key: FunctionName
value: "^custodian*"
op: regex
- name: lambda-policies
resource: lambda
filters:
- type: event-trigger
- name: lambda-errors
resource: lambda
filters:
- type: metrics
name: Errors
statistics: Sum
days: 14
value: 0
op: greater-than
- name: lambda-executions
resource: lambda
filters:
- type: metrics
name: Invocations
statistics: Sum
days: 14
period: 3600
value: -1
op: greater-than
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment