π‘οΈ 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 Config 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 | 20 | no data | |||
| πΌ Cloudaware Framework β πΌ Data Encryption | 70 | no data |