# KMS Keys

DuploCloud allows you to configure Tenant and Plan level KMS (Key Management Service) keys for AWS/Azure resources. These keys can be selected when creating supported resources to ensure consistent encryption and help meet compliance requirements.

## Adding a KMS Key for a Plan

Plan-level KMS keys can be used for encrypting resources in any Tenant under the selected Plan.

1. Navigate to **Administrator** -> **Plans**.
2. Select the Plan from the **NAME** column.
3. Select the **KMS** tab.
4. Click **Add**. The **Add a Kms Key** pane displays.<br>

   <div align="left"><figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FnZHEKvaaVZN9XNCdu6X9%2FScreenshot%20(938).png?alt=media&#x26;token=e6fa5e54-778f-44d9-8621-b8de5a758b4e" alt="" width="410"><figcaption><p><strong>Add a Kms Key</strong> pane</p></figcaption></figure></div>
5. Complete the following fields:

<table data-header-hidden><thead><tr><th width="177.55548095703125">Field</th><th>User Action / What to Enter</th></tr></thead><tbody><tr><td><strong>Key Name</strong></td><td>Enter a friendly name for the key (e.g., <code>test-key</code>)</td></tr><tr><td><strong>Key Id</strong></td><td>Enter the cloud provider–specific key ID (AWS KMS Key ID or Azure Key Vault Key ID).</td></tr><tr><td><strong>Key Arn</strong></td><td>Enter the cloud provider–specific key ARN or resource ID. For AWS this is the KMS Key ARN; for Azure, this is the Key Vault Key ID URI.</td></tr></tbody></table>

6. Click **Submit** to add the key to the Plan. Once added, the key can be selected when creating supported resources in the Plan, such as databases, compute instances, storage resources, and other services.

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FjvIlV4DOuPMuBhhwg1qO%2FScreenshot%20(941).png?alt=media&#x26;token=d03fd734-51e9-404d-ae03-67a822665995" alt=""><figcaption><p>Plan <strong>KMS</strong> tab in the DuploCloud Portal</p></figcaption></figure>

## Adding a KMS Key for a Tenant

Tenant-level KMS keys can be used for encrypting resources only within the selected tenant.

1. Navigate to **Administrator** -> **Tenants**.
2. Select the Tenant from the **NAME** column.
3. Select the **KMS** tab.
4. Click **Add**. The **Add a Kms Key** pane displays.<br>

   <div align="left"><figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FSKKuLLH9bHabmK5ePLii%2FScreenshot%20(937).png?alt=media&#x26;token=e40e2fa3-fe19-4ea1-b470-ae4ed656a362" alt="" width="410"><figcaption><p><strong>Add a Kms Key</strong> pane</p></figcaption></figure></div>
5. Complete the following fields:

<table data-header-hidden><thead><tr><th width="177.55548095703125">Field</th><th>User Action / What to Enter</th></tr></thead><tbody><tr><td><strong>Key Name</strong></td><td>Enter a friendly name for the key (e.g., <code>test-key</code>)</td></tr><tr><td><strong>Key Id</strong></td><td>Enter the cloud provider–specific key ID (AWS KMS Key ID or Azure Key Vault Key ID).</td></tr><tr><td><strong>Key Arn</strong></td><td>Enter the cloud provider–specific key ARN or resource ID. For AWS this is the KMS Key ARN; for Azure, this is the Key Vault Key ID URI.</td></tr></tbody></table>

6. Click **Submit** to add the key to the Tenant. Once added, the key can be selected when creating supported resources in the Tenant.

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FtJrIgJ92uqZDIDAB5nnH%2FScreenshot%20(940).png?alt=media&#x26;token=1f13e649-be66-4d08-88c2-a17b3c9a0ae5" alt=""><figcaption><p>Tenant <strong>KMS</strong> tab in the DuploCloud Portal</p></figcaption></figure>

## Selecting a KMS Key When Creating Resources

When creating a Host, RDS database, or other supported resource, select a KMS key to use for encrypting data at rest.

1. Navigate to the resource creation page (e.g., **Hosts**, **RDS**, or other supported resources).
2. Locate the **Encryption Key** or **KMS Key** field.
3. Choose a key from the options listed under **Default Tenant Key**, **Plan-level Keys**, or **Tenant-level Keys**.<br>

   <figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FK6B230qCPuyK17ECQCu2%2FScreenshot%20(939).png?alt=media&#x26;token=4fcce0d1-4b26-45b4-8c25-4310eb895c73" alt=""><figcaption><p><strong>Encryption Key</strong> selection options</p></figcaption></figure>
4. Complete the rest of the resource creation steps as usual.

{% hint style="info" %}
**Note:** Only applicable resources will display these key options. Unsupported resources will continue to use the default tenant key.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/security-and-compliance/access-control-1/at-rest-encryption/kms-keys.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
