Guard offers a policy-as-code domain-specific language (DSL) to write rules and validate JSON- and YAML-formatted data such as CloudFormation Templates, K8s configurations, and Terraform JSON plans/configurations against those rules. Take this survey to provide feedback about cfn-guard: https://amazonmr.au1.qualtrics.com/jfe/form/SV_bpyzpfoYGGuuUl0
Apache License 2.0
1.3k
stars
180
forks
source link
[Enhancement] Add Support for Arithmetic Operations #584
Hey @lizhunt-aws, thanks for the suggestion. This is definitely something I could see a lot of benefit to adding. We're going to talk it over with the team and will update this ticket in the future as necessary.
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: