Skip to main content

🧠 AWS SageMaker Notebook Instance is not encrypted with a Customer-Managed KMS key - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:33:19.915137665Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 299βœ”οΈ extract('CA10A1__kmsKeyId__c').isEmpty()βœ”οΈ null
🟒test2βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null
🟒test3βœ”οΈ 99βœ”οΈ isDisappeared(CA10A1__disappearanceTime__c)βœ”οΈ null
🟒test4βœ”οΈ 199βœ”οΈ extract('CA10A1__status__c') != 'InService'βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/policy.yaml1D30566440BB9537EECFB0371BE60326
Open/ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/prod.logic.yaml01EE55F030897C3EF9DF55B6840F4C06
Open/ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/test-data.json229CDB9E3DC65DFE39DD9F2E13E12ADB
Open/types/CA10A1__CaAwsSageMakerNotebookInstance__c/object.extracts.yaml6890CE14909F3170C7201BDF33753985

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/prod.logic.yaml

Content​

Open File

---
inputType: "CA10A1__CaAwsSageMakerNotebookInstance__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10A1__CaAwsSageMakerNotebookInstance__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The SageMaker notebook instance is not in service."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10A1__status__c"
right:
TEXT: "InService"
- status: "INCOMPLIANT"
currentStateMessage: "The SageMaker notebook instance is not encrypted with a customer-managed KMS key."
remediationMessage: "Configure the SageMaker notebook instance to use a customer-managed KMS key for encryption."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10A1__kmsKeyId__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The SageMaker notebook instance is encrypted with a customer-managed KMS key."