Control: OpenSearch domains should have encryption at rest enabled
Description
This control checks whether AWS OpenSearch domains have encryption-at-rest configuration enabled. The check fails if encryption at rest is not enabled.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.opensearch_domain_encryption_at_rest_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.opensearch_domain_encryption_at_rest_enabled --share
SQL
This control uses a named query:
select arn as resource, case when encryption_at_rest_options ->> 'Enabled' = 'false' then 'alarm' else 'ok' end status, case when encryption_at_rest_options ->> 'Enabled' = 'false' then title || ' encryption at rest disabled.' else title || ' encryption at rest enabled.' end reason , region, account_idfrom aws_opensearch_domain;