turbot/steampipe-mod-aws-compliance

Control: OpenSearch domains should be updated to the latest service software version

Description

This control checks whether AWS OpenSearch domain has any updates available. This control is non-compliant if the OpenSearch domain has any updates available.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.opensearch_domain_updated_with_latest_service_software_version

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
arn as resource,
case
when service_software_options ->> 'UpdateAvailable' = 'false' then 'ok'
else 'alarm'
end status,
case
when service_software_options ->> 'UpdateAvailable' = 'false' then title || ' updated with latest service software version.'
else title || ' not updated with latest service software version.'
end reason
, region, account_id
from
aws_opensearch_domain;

Tags