๐ง 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: 2025-11-20T13:28:59.949343139Z 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 | 76FA3745C1B316289AAE48149AB4C387 |
| Open | /ce/ca/aws/sagemaker/notebook-instance-encryption-with-cmk/test-data.json | 229CDB9E3DC65DFE39DD9F2E13E12ADB |
| Open | /types/CA10A1__CaAwsSageMakerNotebookInstance__c/object.extracts.yaml | 560906A0F8263068277FF3F3DDCCFB02 |
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."