turbot/steampipe-mod-aws-compliance

Control: SageMaker notebook instances should run on supported platforms

Description

This control checks whether an Amazon SageMaker AI notebook instance is configured to run on a supported platform, based on the platform identifier specified for the notebook instance. The control fails if the notebook instance is configured to run on a platform that's no longer supported.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.sagemaker_notebook_instance_supported_platform_version

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.sagemaker_notebook_instance_supported_platform_version --share

SQL

This control uses a named query:

select
arn as resource,
case
when platform_identifier like any ($1) then 'ok'
else 'alarm'
end as status,
case
when platform_identifier like any ($1) then title || ' runs on supported platform version(' || platform_identifier || ').'
else title || ' does not run on supported platform version(' || platform_identifier || ').'
end as reason
, region, account_id
from
aws_sagemaker_notebook_instance;

Params

ArgsNameDefaultDescriptionVariable
$1sagemaker_notebook_instance_supported_platform_version
["notebook-al2-v3"]
A list of supported platform versions for SageMaker notebook instance.

Tags