Control: ES domains should be in a VPC
Description
Manage access to the AWS Cloud by ensuring AWS Elasticsearch Service (AWS ES) Domains are within an AWS Virtual Private Cloud (AWS VPC).
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.es_domain_in_vpc
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.es_domain_in_vpc --share
SQL
This control uses a named query:
select arn as resource, case when vpc_options ->> 'VPCId' is null then 'alarm' else 'ok' end status, case when vpc_options ->> 'VPCId' is null then title || ' not in VPC.' else title || ' in VPC ' || (vpc_options ->> 'VPCId') || '.' end reason , region, account_idfrom aws_elasticsearch_domain;