12 lines
326 B
Raku
12 lines
326 B
Raku
|
# 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 { <quantifier> }
|
||
|
regex quantifier {
|
||
|
|| any
|
||
|
|| all
|
||
|
|| \d
|
||
|
}
|
||
|
regex resource { \s \w \s resource[s?] \s}
|
||
|
}
|