turbot/terraform_aws_compliance

Query: rds_db_instance_uses_recent_ca_certificate

Usage

powerpipe query terraform_aws_compliance.query.rds_db_instance_uses_recent_ca_certificate

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'ca_cert_identifier') in ('rds-ca-rsa2048-g1', 'rds-ca-rsa4096-g1', 'rds-ca-ecc384-g1') then 'ok'
when (attributes_std ->> 'ca_cert_identifier') is null then 'skip'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'ca_cert_identifier') in ('rds-ca-rsa2048-g1', 'rds-ca-rsa4096-g1', 'rds-ca-ecc384-g1') then ' uses recent CA certificate'
when (attributes_std ->> 'ca_cert_identifier') is null then ' CA certificate not defined'
else ' uses an old CA certificate'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_db_instance';

Controls

The query is being used by the following controls: