# Below is an example policy to test Policy structure against my $rule = 'all aws_ebs_volume resources have required tag "foo" with required value "bar"'; grammar Policy { regex TOP { } regex quantifier { || any || all || \d } regex resource { \s \w \s resource[s?] \s} }