Visual Editor
The Visual Editor supports custom build policies for IaC, Secrets, and Licenses using attribute-based checks with AND/OR logic. IaC policies support both AND/OR logic, while Secrets and License policies currently only support OR logic.
Under Governance, select Add Policy > Config.
Fill in the fields in the Add Details step of the wizard (refer to Custom Build Policies)> Next.
The IaC Policy Code Editor is displayed by default in the Create query step of the wizard.
Select Visual Editor from the menu next to the 'Scan' button.
Select a policy type.
Configure the policy by selecting values in the provided fields.
For Licenses, select a license type. Multiple types are supported
For Secrets, add a Regular expression. Multiple 'OR' expressions are supported
For IaC, see Configure Iac Custom Build Policies below.
Verify the policy’s functionality. Note that test scans are only supported for IaC policies.
Select Next to access Compliance Standards, and complete the process for creating a custom Build-time check policy (refer to Custom Build Policies).
Configure IaC Custom Build Policies
Limitations:
The Visual Editor supports policy creation for cloud service providers supported by Prisma Cloud. For unsupported providers, use the Code Editor
The 'Resource Type' and 'Attribute' fields are selection-based, not free text
For more advanced policies requiring custom attributes, such as tagging rules with
tags.<tag_key>, use the Code EditorThe Visual Editor does not support connected resources; use the Code Editor for these policies
Repeat steps 1-4 above, selecting IaC as the policy type.
Select Category Type.
Policies are categorized by type. Options include Elasticsearch, General, IAM, Kubernetes, Logging, Monitoring, Networking, Public, Secrets, Serverless, Storage, and Vulnerabilities.
Select the target Framework.
Supported frameworks include Terraform, Kubernetes, CloudFormation, Bicep, and ARM. You can assign multiple frameworks to a single policy. For example, a policy can be configured to support both Bicep and ARM.
Select a Cloud Provider.
Select a Resource Type.
The Cloud Provider selection determines the available Resource Types and their corresponding syntax.
Create a query: Select an Attribute, Operator and add a Value.
This query defines the matching condition to check if a resource contains a specific value or if a specific value exists.
This query type allows users to build complex search criteria using multiple attribute-operator-value combinations. The initial query supports both AND and OR conditions for flexible filtering. You can further refine results by applying additional logic, providing granular control over data retrieval.
Select Scan to verify your custom IaC code.
If your custom IaC code contains no errors, Prisma Cloud will display up to 30 resource results.
The following screenshot displays an example of results returned by a verified IaC policy.

The same policy could be defined using the Code Editor as follows:
Last updated
Was this helpful?

