Control: Elasticsearch domains should have internal user database enabled
Description
Ensure Elasticsearch domains have internal user database enabled. This control is non-compliant if a domain's internal user database is not enabled.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.es_domain_internal_user_database_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.es_domain_internal_user_database_enabled --share
SQL
This control uses a named query:
select arn as resource, case when advanced_security_options ->> 'InternalUserDatabaseEnabled' = 'true' then 'ok' else 'alarm' end as status, case when advanced_security_options ->> 'InternalUserDatabaseEnabled' = 'true' then title || ' internal user database enabled.' else title || ' internal user database disabled.' end as reason , region, account_idfrom aws_elasticsearch_domain;