turbot/terraform_aws_compliance

Query: secretsmanager_secret_automatic_rotation_lambda_enabled

Usage

powerpipe query terraform_aws_compliance.query.secretsmanager_secret_automatic_rotation_lambda_enabled

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'rotation_rules') is not null and (attributes_std -> 'rotation_lambda_arn') is not null then 'ok'
else 'alarm'
end as status,
split_part(address, '.', 2) || case
when (attributes_std -> 'rotation_rules') is not null and (attributes_std -> 'rotation_lambda_arn') is not null then ' scheduled for rotation using Lambda function'
else ' automatic rotation using Lambda function disabled'
end || '.' as reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_secretsmanager_secret';

Controls

The query is being used by the following controls: