# Manage cloud controls in Assured Workloads and
Audit Manager

*Applicable only for [Assured Workloads frameworks](https://docs.cloud.google.com/assured-workloads/docs/frameworks-overview.md.txt)*

Assured Workloads frameworks includes many built-in cloud controls that you can add to
custom frameworks and deploy in your environment. If required, you can create
and manage your own custom cloud controls and update built-in cloud controls.

## Before you begin


To get the permissions that
you need to manage cloud controls,

ask your administrator to grant you the
following IAM roles:

- To view available cloud controls: [Assured Workloads Viewer](https://docs.cloud.google.com/iam/docs/roles-permissions/assuredworkloads.md.txt#assuredworkloads.viewer) (`roles/assuredworkloads.viewer`) on the organization
- To create or modify custom cloud controls: [Assured Workloads Administrator](https://docs.cloud.google.com/iam/docs/roles-permissions/assuredworkloads.md.txt#assuredworkloads.admin) (`roles/assuredworkloads.admin`) on the organization


For more information about granting roles, see [Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access.md.txt).


You might also be able to get
the required permissions through [custom
roles](https://docs.cloud.google.com/iam/docs/creating-custom-roles) or other [predefined
roles](https://docs.cloud.google.com/iam/docs/roles-overview#predefined).

## View cloud controls

To view built-in and custom cloud controls, follow these steps:

1. In the Google Cloud console, go to the **Frameworks** page.


   [Go to Frameworks](https://console.cloud.google.com/compliance/configure/frameworks)

   <br />

2. If prompted, select your organization.

3. Click the **Cloud controls** tab. The list of available cloud controls is
   shown.

   The dashboard lists the name, unique ID, type, version, frameworks, and deployment location for each control.
4. Click the control name to view its description, severity, rules, and
   remediation steps.

## Create a custom cloud control

A custom cloud control applies to only one
[resource type](https://docs.cloud.google.com/asset-inventory/docs/asset-types.md.txt#resource-types). The only
supported data type is Cloud Asset Inventory resources. Custom cloud controls don't
support parameters.

1. In the Google Cloud console, go to the **Frameworks** page.


   [Go to Frameworks](https://console.cloud.google.com/compliance/configure/frameworks)

   <br />

2. If prompted, select your organization.

3. Click the **Cloud controls** tab. The list of available cloud controls is
   shown.

4. Click **Create custom cloud control**, and then create the cloud control
   either with Gemini or manually:

### Use Gemini

1. In the **Create with Gemini** card, enter a prompt in
   **Describe the control you need** and click **Generate**. Based on your
   prompt, Gemini provides a name, description, mode, finding
   severity, and categories.

2. Click **Insert selected**, review the recommendations across each step,
   and make any required changes.

3. Click **Create**.

### Create manually

1. In **ID**, provide a unique identifier for your control.

2. Enter a **Name** and **Description (optional)** to help users in your
   organization understand the purpose of the custom cloud control, and then
   click **Continue**.

3. In the **Select location** step, select a location for the cloud control
   and click **Continue**.

4. In **Resource** , select an available resource type for your custom cloud
   control. Assured Workloads frameworks support all resource types. To find the
   name for a resource, see [Asset types](https://docs.cloud.google.com/asset-inventory/docs/asset-types.md.txt).

5. In the **Expression editor**, provide the detection logic for your cloud
   control in Common Expression Language (CEL) format.

   CEL expressions let you define how you want to evaluate the properties of
   a resource. For more information and examples, see
   [Write rules for custom cloud controls](https://docs.cloud.google.com/assured-workloads/docs/write-rules-cloud-controls.md.txt).

   If your evaluation rule isn't valid, an error is displayed.
6. In **Severity**, select an appropriate findings severity.

7. In **Remediation instructions** , write instructions so that incident
   responders and administrators in your organization can resolve any
   findings for the cloud control. Click **Continue**.

8. Optional: In the **Set advanced options (optional)** step, select the
   **Category** tags for the control.

9. Click **Create**.

## Edit a custom cloud control

After you create a cloud control, you can change its name, description, rules,
remediation steps, and severity level. You can't change the cloud control
category.

1. In the Google Cloud console, go to the **Frameworks** page.


   [Go to Frameworks](https://console.cloud.google.com/compliance/configure/frameworks)

   <br />

2. If prompted, select your organization.

3. Click the **Cloud controls** tab. The list of available cloud controls is
   shown.

4. Click the cloud control that you want to edit.

5. On the **Cloud control details** page, verify that the cloud control isn't
   included in a framework. If required,
   [edit the framework to remove the cloud control](https://docs.cloud.google.com/assured-workloads/docs/manage-frameworks.md.txt#update-custom-framework).

6. Click **Edit**.

7. On the **Edit custom cloud control** page, change the **Name** and
   **Description (optional)** as required. Click **Continue**.

8. In the **Select location** step, click **Continue**.

9. Update the rules, finding severity, and remediation instructions.

10. Click **Save**.

## Update a built-in cloud control to a newer release

Google publishes regular updates to its built-in cloud controls as services
deploy new features or as new best practices emerge. Updates can include new
controls or changes to existing controls.

You can view the releases of built-in cloud controls on the **Cloud controls**
tab or on the **Cloud control details** page.

Google notifies you in the release notes when the following items are updated:

- Cloud control name
- Finding category
- Change in the detective or preventive logic in a rule
- Underlying logic of a rule

After a notification, update the deployed frameworks in place to apply the new control. For instructions, see
[Update a framework to a newer release](https://docs.cloud.google.com/assured-workloads/docs/manage-frameworks.md.txt#update-framework-version).

## Delete a custom cloud control

Delete a cloud control when it's no longer required. You can only delete cloud
controls that you create. You can't delete built-in cloud controls.

1. In the Google Cloud console, go to the **Frameworks** page.


   [Go to Frameworks](https://console.cloud.google.com/compliance/configure/frameworks)

   <br />

2. If prompted, select your organization.

3. Click the **Cloud controls** tab. The list of available cloud controls is
   shown.

4. Click the cloud control that you want to delete.

5. On the **Cloud control details** page, verify that the cloud control isn't
   included in a framework. If required,
   [edit the framework to remove the cloud control](https://docs.cloud.google.com/assured-workloads/docs/manage-frameworks.md.txt#update-custom-framework).

6. Click **Delete**.

7. In the confirmation dialog, review the message, enter `DELETE`, and then
   click **Confirm**.

## What's next

- Learn more about [Assured Workloads frameworks](https://docs.cloud.google.com/assured-workloads/docs/frameworks-overview.md.txt).
- Learn how to [manage frameworks](https://docs.cloud.google.com/assured-workloads/docs/manage-frameworks.md.txt).