---
updatedAt: 2025-01-31T14:56:26.000Z
agentTools:
  projectIndex: https://tutorials.akeyless.io/llms.txt
---

# Akeyless as an External Multi-Cloud KMS

<Embed url="https://www.youtube.com/watch?v=0p6z5RVfjhU" title="Multi-Cloud KMS with Classic Keys and BYOK" favicon="https://www.google.com/favicon.ico" image="https://i.ytimg.com/vi/0p6z5RVfjhU/hqdefault.jpg" provider="youtube.com" href="https://www.youtube.com/watch?v=0p6z5RVfjhU" typeOfEmbed="youtube" html="%3Ciframe%20class%3D%22embedly-embed%22%20src%3D%22%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252F0p6z5RVfjhU%253Ffeature%253Doembed%26display_name%3DYouTube%26url%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253D0p6z5RVfjhU%26image%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252F0p6z5RVfjhU%252Fhqdefault.jpg%26key%3D7788cb384c9f4d5dbbdbeffd9fe4b92f%26type%3Dtext%252Fhtml%26schema%3Dyoutube%22%20width%3D%22854%22%20height%3D%22480%22%20scrolling%3D%22no%22%20title%3D%22YouTube%20embed%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%3B%20encrypted-media%3B%20picture-in-picture%3B%22%20allowfullscreen%3D%22true%22%3E%3C%2Fiframe%3E" />

> 📘 Deeper Dive
>
> For more in-depth information, check out our detailed documentation on the following topics:
>
> <a href="https://docs.akeyless.io/docs/external-kms" target="_blank" style={{ color: '#36c' }}>External KMS</a>
>
> <a href="https://docs.akeyless.io/docs/classic-keys" target="_blank" style={{ color: '#36c' }}>Classic Keys</a>
>
> <a href="https://docs.akeyless.io/docs/key-rotation" target="_blank" style={{ color: '#36c' }}>Key Rotation</a>

> 👍 Need any help?
>
> If something in this tutorial isn't working as expected, feel free to contact our support team [via Slack](https://akeylesssupport.slack.com/join/shared_invite/zt-dgjcbscx-rXlZIXsmI1sS5Yc~XrFvGw#/shared-invite/email).

***Below is a text-only guide for users based on the above video***

## What is Akeyless KMS?

The Akeyless Key Management System (KMS) allows organizations to simplify the management and distribution of encryption keys in Multi-Cloud and Hybrid environments using [Classic Keys](https://docs.akeyless.io/docs/classic-keys).

A Classic Key is an encryption key managed in the Akeyless KMS that can be shared with a cloud KMS or be used as an encryption key to protect your secrets, enabling you to Bring Your Own Key (BYOK) to the Akeyless Platform.

The Akeyless KMS manages the key lifecycle, including secure key generation and storage, full role-based access control, and logging and reporting of key usage. This enables you to maintain centralized control of your keys in Akeyless while using the cryptographic capabilities of external cloud providers.

When you share a key with one of the supported cloud KMS providers, a copy of the key material is securely transferred in accordance with the key import specification of the KMS provider.

## AWS KMS Integration

First, create an [AWS Target](https://docs.akeyless.io/docs/aws-targets) or use one you already created. You can see how to do this in a previous video tutorial [here](https://tutorials.akeyless.io/docs/creating-targets).

Then, create a Classic Key in Akeyless either via the UI or CLI.

### Creating a Classic Key via the UI

Choose 'New' -> 'Encryption Key' -> 'Classic' and enter the relevant details.

![](https://files.readme.io/642ab86-Screenshot_2023-03-12_at_14.25.08.png)

Once done, click 'Finish'.

<Image align="center" width="450px" src="https://files.readme.io/2e275e7-Screenshot_2023-03-12_at_14.25.51.png" />

Next, click the 'Attach' button to connect a Target with the Classic Key and choose 'Single Region' or 'Multi Region'. Then click 'Attach'.

![](https://files.readme.io/bbf9fbe-Screenshot_2023-03-12_at_14.26.24.png)

### Creating a Classic Key via the CLI

Copy and paste the following command into your Terminal:

```Text Shell
akeyless create-classic-key --name [name-of-your-classic-key] --alg AES256GCM --gateway-url = https://[your-gateway-url]:8000 # For Multi-Region, add '--multi-region=true --regions [add-region-names-here]'
```

Next, attach a Target using the following command:

```Text Shell
akeyless assoc-target-item --target-name [name-of-your-target] --name [name-of-your-classic-key]
```

> 📘 Note
>
> Different cloud providers demand additional parameters. To see the relevant parameters, go to the [External KMS Integration](https://docs.akeyless.io/docs/external-kms) docs page.

Once you associate a Target to the Classic Key, a copy of the key material is securely transferred to the AWS KMS in accordance with its key import specification.

You can see it, by finding the Classic Key Display ID in Akeyless and the searching for it within the AWS KMS.

<Image align="center" className="border" border={true} src="https://files.readme.io/024143b-Screenshot_2023-03-12_at_14.39.05.png" />

Here is what it looks like in AWS.

<Image align="center" src="https://files.readme.io/5b8a276-Screenshot_2023-03-12_at_14.39.23.png" />

### Rotate a Classic Key in AWS

To rotate a key from the UI, simple click the 'Rotate Key Now' button.

<Image align="center" src="https://files.readme.io/6597c71-Screenshot_2023-03-12_at_15.49.51.png" />

Or, from the CLI, run the following command:

```Text Shell
akeyless rotate-key -n [your-classic-key-name]
```

In AWS, when Encryption Keys are rotated, a new Alias of the key is created. You will therefore see a new Alias created each time you rotate.

Here is what happens after one rotation.

<Image align="center" src="https://files.readme.io/f2e59af-Screenshot_2023-03-12_at_15.56.07.png" />

Here is what happens after two rotations.

<Image align="center" src="https://files.readme.io/6744a18-Screenshot_2023-03-12_at_16.00.33.png" />

And you can see versions within the key itself under 'Tags'.

<Image align="center" src="https://files.readme.io/95e96de-Screenshot_2023-03-12_at_16.40.18.png" />

## Google KMS Integration

First, create a [GCP Target](https://docs.akeyless.io/docs/gcp-targets) or use one you already created. You can see how to create a target in a previous video tutorial [here](https://tutorials.akeyless.io/docs/creating-targets).

Then, create a Classic Key in Akeyless either via the UI or CLI.

> 📘 Important
>
> Make sure you have a GCP Keyring to target and remember to give the GCP Target the cloud KMS admin permissions to manage the keyring.

### Creating a Classic Key via the UI

Choose 'New' -> 'Encryption Key' -> 'Classic' and enter the relevant details.

Once done, click 'Finish'.

<Image align="center" width="450px" src="https://files.readme.io/9eac9d5-Screenshot_2023-03-12_at_15.24.10.png" />

Next, click the 'Attach' button to connect a Target with the Classic Key and add your 'Project ID', 'Location ID', 'Keyring Name', 'Purpose', and 'Algorithm'. Then click 'Attach'.

<Image align="center" width="450px" src="https://files.readme.io/731fd3e-Screenshot_2023-03-12_at_15.29.36.png" />

### Creating a Classic Key via the CLI

Copy and paste the following command into your Terminal:

```Text Shell
akeyless create-classic-key --name [name-of-your-classic-key] --alg AES256GCM --gateway-url = https://[your-gateway-url]:8000
```

Next, attach a Target using the following command:

```Text Shell
akeyless assoc-target-item --target-name [name-of-your-target] --name [name-of-your-classic-key] --project-id [gcp-project-id] --location-id [gcp-kms-location] --keyring-name [name-of-your-keyring] --purpose [ENCRYPT_DECRYPT, MAC] --kms-algorithm [choose-option-from https://docs.akeyless.io/docs/gcp-kms]
```

> 📘 Note
>
> Different cloud providers demand additional parameters. To see the relevant parameters, go to the [External KMS Integration](https://docs.akeyless.io/docs/external-kms) docs page.

Once you associate a Target to the Classic Key, a copy of the key material is securely transferred to the GCP KMS in accordance with its key import specification.

You can see it, by finding the Classic Key Display ID in Akeyless and the searching for it within the GCP KMS.

<Image align="center" src="https://files.readme.io/f10283c-Screenshot_2023-03-12_at_15.33.20.png" />

Here is what it looks like in GCP.

<Image align="center" src="https://files.readme.io/a1d42b5-Screenshot_2023-03-12_at_15.33.49.png" />

### Rotate a Classic Key in GCP

To rotate a key from the UI, simple click the 'Rotate Key Now' button.

![](https://files.readme.io/6597c71-Screenshot_2023-03-12_at_15.49.51.png)

Or, from the CLI, run the following command:

```Text Shell
akeyless rotate-key -n [your-classic-key-name]
```

You can see versions of the key by clicking on the Key Name and then 'Versions'.

<Image align="center" src="https://files.readme.io/bf586c0-Screenshot_2023-03-12_at_16.50.38.png" />