OLD - Building Custom Policies

📘

See Understanding Custom Policies for a conceptual explanation of Custom Policies in Bridgecrew Cloud.

Creating a Custom Policy

To build a Custom Policy:

  1. Under Policies, press New Policy.

Policy Details, Name and Category

  1. Under Policy Details, enter the Policy Name and Guidelines and select a Category.
    The name and guidelines appear in Incidents based on this policy.

Severity Level

  1. Assign a Severity Level.

Associate with Benchmark (Optional)

  1. You also have the option of associating your custom Policy with one or more benchmark reports (see Compliance Reports). Choose the Benchmark and the section in which this Policy will appear within the report.

Resource Definition

  1. Under Resource Definition, select a Provider and Resource Type(s).

Define Policy Rule

  1. Under Definition, enter one or more row of Policy rules. Bridgecrew uses Terraform arguments to express configuration states. See further details and examples here.

📘

Note

You can also create multi-rule Policies. See details below.

Preview

  1. When you complete the rule, a preview appears.

In the example shown below, the resource does not comply with the custom policy because its instance type is not micro.t3.

  1. Press Save.

📘

Note

Your new Policy will be included in Bridgecrew Cloud's next scan.

Multi-Rule Policies

You can create Policies with multiple rules using the AND condition.
In the example shown below, the Policy would be use to ensure that a Resource can not be access via Internet or SSH.

Editing a Custom Policy

Custom Policies can be viewed on the Policy Dashboard.
To edit a Custom Policy, hover over the date at the end of the Policy row and press Edit.

Updated 2 months ago


OLD - Building Custom Policies


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.