cloud-custodian icon indicating copy to clipboard operation
cloud-custodian copied to clipboard

aws - cost filter

Open thisisshi opened this issue 6 years ago • 4 comments

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
        ...

thisisshi avatar Dec 04 '18 16:12 thisisshi