Policies

Filtering Policy Settings

You can use the policySettings filter to search and filter policy settings in the Turbot Guardrails Console or GraphQL queries.

Examples

AimFilter text
Settings that are orphaned by a higher level required settingis:orphan
Settings that are an exception to a higher level required settingis:exception
Settings expiring in the next week, by expiration date descendingvalidToTimestamp:>now validToTimestamp:<T+7d sort:validToTimestamp
Settings created/updated in the last day, newest firsttimestamp:>T-1d sort:-timestamp
Settings on a specific resourceresource:162675146433353 level:self
Settings on a specific resource and belowresource:162675146433353
AWS > S3 > Bucket > Approved policy and sub-policy settingspolicyType:tmod:@turbot/aws-s3#/policy/types/bucketApproved
AWS > S3 > Bucket > Approved policy settings (not AWS > S3 > Bucket > Approved > * sub-policy settings)policyType:tmod:@turbot/aws-s3#/policy/types/bucketApproved policyTypeLevel:self
Settings on AWS policy typespolicyType:aws
All settings for bucket policy typespolicyType:bucket

Filtering Policy Values

You can use the policyValues filter to search and filter policy values in the Guardrails Console or GraphQL.

Examples

AimFilter text
Policy values set to 'Check: Enabled'value:'Check: Enabled'
Policy values for resources with a department tag set to 'sales'tags:department=/^sales$/i
Policy values that are not in an OK statestate:-ok
Policy values created/updated in the last day, newest firsttimestamp:>T-1d sort:-timestamp
Policy values for a specific resourceresource:162675146433353 level:self
Policy values for a specific resource and descendant resourcesresource:162675146433353
AWS > EC2 > Instance > Active policy and sub-policy valuespolicyType:tmod:@turbot/aws-ec2#/policy/types/instanceActive
AWS > EC2 > Instance > Active policy values (not AWS > EC2 > Instance > Active > * sub-policy values)policyType:tmod:@turbot/aws-ec2#/policy/types/instanceActive policyTypeLevel:self
Policy values for AWS policy typespolicyType:aws
Policy values for CIS policy typespolicyType:cis