This document shows how to create a customer-managed encryption key using
Cloud Key Management Service (Cloud KMS). You can use this key to back up data in
other Google Cloud services.

## Before you begin

1. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
2. Ensure that you have the Cloud KMS Admin (`roles/cloudkms.admin`) role or another role that includes the necessary permissions.

## Create a regional encryption key

Create a key in the same location as the resources you intend to back up.

### Console

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

   [Go to the KMS console page](https://console.cloud.google.com/security/kms)
2. Select an existing key ring or click **Create key ring** to create a new
   one.

3. Click **Create key**.

4. In the **Key name** field, enter a name for your key.

5. For **Location type** , select **Region** or **Multi-region**.

6. In the **Location** menu, select the same region as the resources you
   want to back up with this key.

   If the key location and the resource location don't match, operations
   that use the key fail.
7. Click **Create**.

8. After the key is created, select the key from the list.

9. Copy the **Resource name** for future reference.

The resource name has the following format:

`projects/`<var translate="no">PROJECT_ID</var>`/locations/`<var translate="no">REGION</var>`/keyRings/`<var translate="no">KEY_RING_NAME</var>`/cryptoKeys/`<var translate="no">KEY_NAME</var>

## What's next

- Learn more about [Cloud KMS](https://docs.cloud.google.com/kms/docs/cmek.md.txt).
- Learn how to [create a backup vault](https://docs.cloud.google.com/backup-disaster-recovery/docs/cloud-console/backup-vault-create.md.txt).