generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 192
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
I'd like to do some basic math in assertions and counts() outside of the binary comparison operations.
Describe the solution you'd like
Be able to parse and validate a rule similar to the following:
let minimum_tag_ratio = 0.95
rule tag_ratio_must_be_over_sla {
let all_resources_to_check = Resources.*[ Type == /AWS::IAM::Role/ ]
let found_required_tags = Resources.*[
Type == /AWS::IAM::Role/
Properties.Tags[*].Key == ...blahblah
...blah
]
(count(%found_required_tags) / count(%all_resources_to_check)) >= %minimum_tag_ratio
}
kohidave
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request