Control: DAX clusters endpoint encryption should have TLS enabled
Description
This control checks whether a DAX cluster endpoint encryption has TLS enabled. TLS encrypts the connection between the application and the DAX cluster. Encrypting data in transit protects it from being intercepted by a user not authenticated to AWS. The encryption adds another set of access controls to limit the ability of unauthorized users to access to the data. For example, API permissions are required to decrypt the data before it can be read.
Usage
Run the control in your terminal:
powerpipe control run terraform_aws_compliance.control.dax_cluster_endpoint_encryption_tls_enabledSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_aws_compliance.control.dax_cluster_endpoint_encryption_tls_enabled --shareSQL
This control uses a named query:
select address as resource, case when (attributes_std ->> 'cluster_endpoint_encryption_type') = 'TLS' then 'ok' else 'alarm' end status, split_part(address, '.', 2) || case when (attributes_std ->> 'cluster_endpoint_encryption_type') = 'TLS' then ' endpoint encryption tls enabled' else ' endpoint encryption tls disabled' end || '.' as reason , path || ':' || start_linefrom terraform_resourcewhere type = 'aws_dax_cluster';