Table: aws_sagemaker_notebook_instances

This table shows data for Amazon SageMaker Notebook Instances.

https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeNotebookInstance.html (opens in a new tab)

The primary key for this table is arn.

Columns

NameType
_cq_iduuid
_cq_parent_iduuid
account_idutf8
regionutf8
arn (PK)utf8
tagsjson
accelerator_typeslist<item: utf8, nullable>
additional_code_repositorieslist<item: utf8, nullable>
creation_timetimestamp[us, tz=UTC]
default_code_repositoryutf8
direct_internet_accessutf8
failure_reasonutf8
instance_metadata_service_configurationjson
instance_typeutf8
kms_key_idutf8
last_modified_timetimestamp[us, tz=UTC]
network_interface_idutf8
notebook_instance_arnutf8
notebook_instance_lifecycle_config_nameutf8
notebook_instance_nameutf8
notebook_instance_statusutf8
platform_identifierutf8
role_arnutf8
root_accessutf8
security_groupslist<item: utf8, nullable>
subnet_idutf8
urlutf8
volume_size_in_gbint64
result_metadatajson

Example Queries

These SQL queries are sampled from CloudQuery policies and are compatible with PostgreSQL.

Amazon SageMaker notebook instances should not have direct internet access

SELECT
  'Amazon SageMaker notebook instances should not have direct internet access'
    AS title,
  account_id,
  arn AS resource_id,
  CASE
  WHEN direct_internet_access = 'Enabled' THEN 'fail'
  ELSE 'pass'
  END
    AS status
FROM
  aws_sagemaker_notebook_instances;