Describe the bug
While writing a query against AWS IAM policy I ran into an error using containsNone:
cnquery> aws.iam.attachedPolicies.where( arn == "arn:aws:iam::aws:policy/PowerUserAccess" ) { defaultVersion.document.Statement { _["NotAction"].containsNone(/rds:\*/) }}
1 error occurred:
* 1 error occurred:
* tried to call function with a non-array, please make sure the argument is an array
aws.iam.attachedPolicies.where: [
0: {
defaultVersion.document.Statement: 1 error occurred:
* tried to call function with a non-array, please make sure the argument is an array
}
]
Describe the bug While writing a query against AWS IAM policy I ran into an error using
containsNone
:The
NotAction
policy element is an array: