cloud-custodian
cloud-custodian copied to clipboard
aws - cost filter
feature request to add a new budget filter e.g.:
policies:
- name: some-app-ec2-out-of-budget
resource: ec2
filters:
- "tag:Application": some-app
- type: cost
value: 500
period: 7 # days
op: gt
actions:
- type: notify
...
could also add the ability to group by resource attributes:
policies:
- name: ec2-out-of-budget
resource: ec2
filters:
- type: cost
value: 500
period: 7 # days
group_by: "tag:Application" # jmespath on the resource attributes
op: gt
actions:
- type: notify
...
or perhaps operate on the account level:
policies:
- name: out-of-budget
resource: account
filters:
- type: cost
value: 500
period: 7 # days
group_by: "tag:Application" # jmespath on the resource attributes
op: gt
actions:
- type: notify
...