๐ก๏ธ AWS SageMaker Endpoint Config does not specify a KMS key๐ข
- Contextual name: ๐ก๏ธ Endpoint Config does not specify a KMS key๐ข
- ID:
/ce/ca/aws/sagemaker/endpoint-config-encryption-with-kms - Tags:
- ๐ข Policy with categories
- ๐ข Policy with type
- ๐ข Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicโ
- ๐ง prod.logic.yaml๐ข
Similar Policiesโ
- Cloud Conformity: Endpoints Encrypted With KMS Customer Managed Keys
Descriptionโ
Descriptionโ
This policy identifies AWS SageMaker Endpoint Configurations that do not use an AWS KMS customer-managed key (CMK) for storage encryption.
Rationaleโ
By default, the storage volume for a SageMaker endpoint is encrypted with a temporary, Amazon-managed key. Using a customer-managed KMS key provides an additional layer of security and control. It enables you to manage the key lifecycle, define access policies, and audit key usage, which is critical for protecting sensitive machine learning models and associated data.
Auditโ
This policy flags an AWS SageMaker Endpoint Configs as
INCOMPLIANTif theKMS Key IDfield is empty.
Remediationโ
Remediationโ
Enable Encryption for SageMaker Endpoints Using Customer-Managed KMS Keysโ
Existing SageMaker endpoint configurations cannot be directly modified to add encryption. To enable encryption with a customer-managed KMS key, create a new endpoint configuration with the desired KMS key and update the endpoint to use it.
From Command Lineโ
Retrieve the existing endpoint configuration to obtain the
ProductionVariantsdetails.Save the
ProductionVariantsarray to a file namedproduction-variants.json:aws sagemaker describe-endpoint-config \
--endpoint-config-name {{old-config-name}} \
--query 'ProductionVariants' \
--output json > production-variants.jsonExample
production-variants.jsoncontent:[
{
"VariantName": "AllTraffic",
"ModelName": "model-name",
"InitialInstanceCount": 1,
"InstanceType": "ml.t2.medium",
"InitialVariantWeight": 1.0
}
]Create a new endpoint configuration with the KMS key:
... see more
policy.yamlโ
Linked Framework Sectionsโ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| ๐ผ AWS Well-Architected โ ๐ผ SEC08-BP02 Enforce encryption at rest | 14 | no data | |||
| ๐ผ Cloudaware Framework โ ๐ผ Data Encryption | 54 | no data |