Control: MSK Connect connectors should be encrypted in transit
Description
This control checks whether an Amazon MSK Connect connector is encrypted in transit. This control fails if the connector isn't encrypted in transit.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.mskconnect_connector_encryption_in_transit_with_tls_enabledSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.mskconnect_connector_encryption_in_transit_with_tls_enabled --shareSQL
This control uses a named query:
select  arn as resource,  case    when kafka_cluster_encryption_in_transit ->> 'EncryptionType' = 'TLS' then 'ok'    else 'alarm'  end as status,  case    when kafka_cluster_encryption_in_transit ->> 'EncryptionType' = 'TLS' then title || ' encryption in transit enabled.'    else title || ' encryption in transit enabled with plaintext.'  end as reason    , region, account_idfrom  aws_mskconnect_connector;