turbot/aws_perimeter
GitHub
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:

steampipe check aws_perimeter.control.es_domain_in_vpc

Snapshot and share results via Steampipe Cloud:

steampipe login
steampipe check --share aws_perimeter.control.es_domain_in_vpc

Plugins & 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