turbot/terraform_aws_compliance

Query: sagemaker_notebook_instance_root_access_disabled

Usage

powerpipe query terraform_aws_compliance.query.sagemaker_notebook_instance_root_access_disabled

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'root_access') = 'Disabled' then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'root_access') = 'Disabled' then ' root access disabled'
else ' root access enabled'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_sagemaker_notebook_instance';

Controls

The query is being used by the following controls: