Skip to main content

🧠 AWS SageMaker Notebook Instance is not in a VPC - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-01-24T12:02:26.757652612Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 199βœ”οΈ extract('CA10A1__status__c') != 'InService'βœ”οΈ null
🟒test2βœ”οΈ 299βœ”οΈ isEmptyLookup('CA10A1__subnet__r')βœ”οΈ null
🟒test3βœ”οΈ 399βœ”οΈ notEmptyLookup('CA10A1__subnet__r')βœ”οΈ null
🟒test4βœ”οΈ 99βœ”οΈ isDisappeared(CA10A1__disappearanceTime__c)βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/sagemaker/notebook-instance-in-vpc/policy.yaml96EA542826B9BDC78B531FCD11A5A693
Open/ce/ca/aws/sagemaker/notebook-instance-in-vpc/prod.logic.yaml4D3E398E3FC7CC20B1B30726AE19D95E
Open/ce/ca/aws/sagemaker/notebook-instance-in-vpc/test-data.json2B1FB79E0FB62C8688FF65B66F9F88EA
Open/types/CA10A1__CaAwsSageMakerNotebookInstance__c/object.extracts.yaml6890CE14909F3170C7201BDF33753985

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/sagemaker/notebook-instance-in-vpc/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/sagemaker/notebook-instance-in-vpc/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/sagemaker/notebook-instance-in-vpc/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/sagemaker/notebook-instance-in-vpc/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/sagemaker/notebook-instance-in-vpc/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 currently in service."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10A1__status__c"
right:
TEXT: "InService"
- status: "INCOMPLIANT"
currentStateMessage: "The notebook instance is not associated with a VPC."
remediationMessage: "Configure the notebook instance to reside within a VPC subnet."
check:
IS_EMPTY_LOOKUP: "CA10A1__subnet__r"
- status: "COMPLIANT"
currentStateMessage: "The notebook instance is launched within a VPC."
check:
NOT_EMPTY_LOOKUP: "CA10A1__subnet__r"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."