turbot/aws_perimeter
Loading controls...

Control: Elasticsearch Service domains should be in a VPC

Description

This control checks whether Elasticsearch domains are in a VPC. It does not evaluate the VPC subnet routing configuration to determine public access. You should ensure that Amazon ES domains are not attached to public subnets.

Usage

Run the control in your terminal:

powerpipe control run aws_perimeter.control.es_domain_in_vpc

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_perimeter.control.es_domain_in_vpc --share

Steampipe Tables

SQL

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_id
from
aws_elasticsearch_domain;

Tags