Encrypt system disks, data disks, snapshots, and images to protect data at rest on ECS.
Prerequisites
A Key Management Service (KMS) instance is created and enabled. For more information, see Purchase and enable a KMS instance.
Background
ECS cloud disk encryption uses a service key by default, or a customer master key (CMK) you specify. It applies envelope encryption: a data key (DK) encrypts your data and a CMK encrypts the data key. See Encrypted disks.
Usage notes
Key usage considerations:
|
Key type |
Notes |
|
Service key |
Unique per user per region. Cannot be deleted or disabled. |
|
Bring Your Own Key (BYOK) |
|
Encrypt a system disk
A system disk holds the operating system and shares the lifecycle of its ECS instance. You can encrypt a system disk only when you create an instance.
Limitations
|
Limitation |
Description |
|
Instance family |
The following instance families do not support encryption: ecs.ebmg5, ecs.ebmgn5t, ecs.ebmi3, ecs.sccg5, ecs.scch5, ecs.ebmc4, and ecs.ebmhfg5. See Instance families. |
|
Cloud disk type |
Only ESSD series cloud disks support encryption: ESSD PL0/PL1/PL2/PL3, ESSD Entry, ESSD AutoPL, and zone-redundant ESSD. |
Procedure
Encrypt a data disk
You can encrypt a data disk when you create an instance or a standalone cloud disk.
Limitations
These limitations apply when you select Create from Snapshot and enable the Encrypt option.
|
Limitation |
Description |
|
Instance family |
The following instance families do not support encryption: ecs.ebmg5, ecs.ebmgn5t, ecs.ebmi3, ecs.sccg5, ecs.scch5, ecs.ebmc4, and ecs.ebmhfg5. See Instance families. |
|
Cloud disk type |
Only ESSD series cloud disks support encryption: ESSD PL0/PL1/PL2/PL3, ESSD Entry, ESSD AutoPL, and zone-redundant ESSD. |
Procedure
Encrypt a snapshot
Snapshots from encrypted cloud disks are automatically encrypted.
Procedure
See Create a snapshot.
Copy an encrypted image
Copy an image across regions or change its encryption status. Use the encrypted copy to create ECS instances with the same environment.
Limitations
|
Limitation |
Description |
|
Region restriction |
An Alibaba Cloud account can copy an image to up to five destination regions. |
|
Image type |
The source image can be encrypted or unencrypted. |
Procedure
See Copy a custom image.
Share an encrypted image
Share encrypted custom images with other Alibaba Cloud accounts so they can create instances with the same environment.
Limitations
To share a service-key-encrypted image, first copy the image and encrypt the copy with a CMK, then share the copy.
See Share a custom image.