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: 2025-11-20T13:28:59.949343139Z 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.yaml76FA3745C1B316289AAE48149AB4C387
Open/ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/test-data.json229CDB9E3DC65DFE39DD9F2E13E12ADB
Open/types/CA10A1__CaAwsSageMakerNotebookInstance__c/object.extracts.yaml560906A0F8263068277FF3F3DDCCFB02

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."