turbot/steampipe-mod-aws-compliance

Control: 4 Amazon EMR security configurations should be encrypted in transit

Description

This control checks whether an Amazon EMR security configuration has encryption in transit enabled. The control fails if the security configuration doesn't enable encryption in transit.

Data in transit refers to data that moves from one location to another, such as between nodes in your cluster or between your cluster and your application. Data may move across the internet or within a private network. Encrypting data in transit reduces the risk that an unauthorized user can eavesdrop on network traffic.

Remediation

To enable encryption in transit in an Amazon EMR security configuration, see Configure data encryption in the Amazon EMR Management Guide.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.foundational_security_emr_4

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.foundational_security_emr_4 --share

SQL

This control uses a named query:

select
name as resource,
case
when (encryption_configuration -> 'EnableInTransitEncryption')::bool then 'ok'
else 'alarm'
end as status,
case
when (encryption_configuration -> 'EnableInTransitEncryption')::bool then title || ' encryption in transit enabled.'
else title || ' encryption in transit disabled.'
end as reason
, region, account_id
from
aws_emr_security_configuration;

Tags