All checks
Low SageMaker · regional

SageMaker inference experiments should have instance storage volume encrypted with customer managed AWS KMS keys

Checks that a SageMaker inference experiment names a customer managed KMS key (its top-level KmsKey) for the storage volume on the ML instances hosting the endpoint under test. Without one SageMaker encrypts the volume with a transient key it discards, so no key policy, rotation or CloudTrail record of its use is yours.

service
SageMaker
severity
Low
scope
evaluated in every region

How to fix it

  • Replaces the resource: The key is fixed at creation: stop this shadow test, then create a new one with the key; its comparison starts again from zero.
  • Affects another check: If data capture is on, also give the new test the captured-data key that SageMaker.24 reads, which unlike this one can be added to an existing test.

In the console

SageMaker AI → Inference → Shadow tests → Create shadow test → Enter shadow test settings → Encryption key

Encryption key
Enter a KMS key ARN of a customer managed key whose key policy lets the experiment's IAM role use it

With the AWS CLI

aws sagemaker create-inference-experiment --name <experiment-name> --type ShadowMode --role-arn <execution-role-arn> --endpoint-name <endpoint-name> --model-variants '[{"ModelName":"<model-name>","VariantName":"<variant-name>","InfrastructureConfig":{"InfrastructureType":"RealTimeInference","RealTimeInferenceConfig":{"InstanceType":"<instance-type>","InstanceCount":1}}}]' --shadow-mode-config '{"SourceModelVariantName":"<variant-name>","ShadowModelVariants":[{"ShadowModelVariantName":"<shadow-variant-name>","SamplingPercentage":10}]}' --kms-key <kms-key-arn> --region <region>

See which of your accounts this check is failing on.

Book a live scan