π§ AWS SageMaker Notebook Instance is not encrypted with a Customer-Managed KMS key - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS SageMaker Notebook Instance
- π AWS SageMaker Notebook Instance - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-02-10T22:33:19.915137665Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/policy.yaml | 1D30566440BB9537EECFB0371BE60326 |
| Open | /ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/prod.logic.yaml | 01EE55F030897C3EF9DF55B6840F4C06 |
| Open | /ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/test-data.json | 229CDB9E3DC65DFE39DD9F2E13E12ADB |
| Open | /types/CA10A1__CaAwsSageMakerNotebookInstance__c/object.extracts.yaml | 6890CE14909F3170C7201BDF33753985 |
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β
---
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."