All checks
Low SageMaker · regional

SageMaker notebook instances should be encrypted with customer managed AWS KMS keys

Checks that a SageMaker notebook instance names a customer managed KMS key for its ML storage volume, which holds the notebooks and data under /home/ec2-user/SageMaker. Without a KmsKeyId the volume is still encrypted, with a system-managed key; your own key gives you its policy, rotation and a CloudTrail record of each use.

service
SageMaker
severity
Low
scope
evaluated in every region

How to fix it

  • Replaces the resource: The key is fixed at creation: copy anything under /home/ec2-user/SageMaker to Git or Amazon S3, create the new instance with the key, then stop and delete this one.

In the console

SageMaker AI → Notebook instances → Create notebook instance → Encryption key

Encryption key
A customer managed key; whoever creates and starts the instance needs kms:CreateGrant and kms:DescribeKey on it
Volume size in GB
At least the old instance's size: it can be increased later but never reduced
Lifecycle configuration
A script that reinstalls what the old instance had outside /home/ec2-user/SageMaker

With the AWS CLI

aws sagemaker create-notebook-instance --notebook-instance-name <notebook-instance-name> --instance-type <instance-type> --role-arn <execution-role-arn> --kms-key-id <kms-key-arn> --region <region>

With Terraform

resource "aws_sagemaker_notebook_instance" "this" {
  name          = var.notebook_instance_name
  instance_type = var.instance_type
  role_arn      = var.execution_role_arn
  kms_key_id    = var.kms_key_arn
}

See which of your accounts this check is failing on.

Book a live scan