For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/code_security/iac_security/iac_rules/cloudformation-aws-emr-security-configuration-encryptions-enabled.md.
A documentation index is available at /llms.txt.
EMR SecurityConfiguration must enable encryption at rest and in transit to prevent unauthorized access to data stored on cluster disks and to protect data in flight between EMR nodes from interception.
For CloudFormation, resources of type AWS::EMR::SecurityConfiguration must define SecurityConfiguration.EncryptionConfiguration with EnableAtRestEncryption set to true and EnableInTransitEncryption set to true. The AtRestEncryptionConfiguration.LocalDiskEncryptionConfiguration.EnableEbsEncryption property must be set to true, and EncryptionKeyProviderType must be defined. Resources missing EncryptionConfiguration, with any of those booleans set to false, or without a defined EncryptionKeyProviderType will be flagged.
#this code is a correct code for which the query should not find any result#this is a problematic code where the query should report a result(s)Resources:EMRSecurityConfiguration:Type:AWS::EMR::SecurityConfigurationProperties:Name:StringSecurityConfiguration:EncryptionConfiguration:EnableInTransitEncryption:trueEnableAtRestEncryption:trueAtRestEncryptionConfiguration:LocalDiskEncryptionConfiguration:EnableEbsEncryption:trueEncryptionKeyProviderType:AwsKmsAwsKmsKey:arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012