turbot/terraform_aws_compliance

Query: datasync_location_object_storage_expose_secret

Usage

powerpipe query terraform_aws_compliance.query.datasync_location_object_storage_expose_secret

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'secret_key') is null then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'secret_key') is null then ' does not expose any secret key details'
else ' exposes secret key details'
end || '.' as reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_datasync_location_object_storage';

Controls

The query is being used by the following controls: