How do I create an EMR cluster with EBS volume encryption?
"I want to turn on Amazon Elastic Block Store (Amazon EBS) encryption in Amazon EMR. Or, I want to use an AWS Key Management Service (AWS KMS) key to encrypt an EBS volume that's attached to my EMR cluster."
"I want to turn on Amazon Elastic Block Store (Amazon EBS) encryption in Amazon EMR. Or, I want to use an AWS Key Management Service (AWS KMS) key to encrypt an EBS volume that's attached to my EMR cluster.Short descriptionAmazon EBS encryption integrates with AWS KMS to provide the encryption keys that protect your data. Beginning with Amazon EMR version 5.24.0, you can choose to turn on EBS encryption. The EBS encryption option encrypts the EBS root device volume and attached storage volumes. For considerations and limitations, see Local disk encryption.There are two options to encrypt EBS volumes on your EMR cluster:Turn on encryption by default for EBS volumes at the account level.Create a KMS key and Amazon EMR security configuration to encrypt EBS volumes for a specific EMR cluster.ResolutionTurn on encryption by default for EBS volumes at the account levelFor more information, see Encryption by default.Create a KMS key and Amazon EMR security configuration to encrypt EBS volumes for a specific EMR clusterTo use this option, do the following:Create a KMS key.Create and configure the Amazon EMR security configuration.Provision an EMR cluster with the security configuration.Step 1: Create a KMS keyIf you don’t have a KMS key ready for this purpose, then do the following to create the key:Open the AWS KMS console.To change the AWS Region, use the Region selector in the upper-right corner of the page.In the navigation pane, choose Customer managed keys.Choose Create key.To create a symmetric encryption KMS key, for Key type choose Symmetric.In Key usage, the Encrypt and decrypt option is selected for you.Choose Next.Enter an alias for the key.Choose Next.Choose the Key administrator.Choose Next.Select the Amazon EMR service role. The default role is EMR_DefaultRole.Select the Amazon Elastic Compute Cloud (Amazon EC2) instance profile role. The default role for the instance profile is EMR_EC2_DefaultRole.Choose Next.Choose Finish.If you're using a custom Amazon EMR service role, then add the following policy to the role before provisioning the EMR cluster.{    "Version": "2012-10-17",    "Statement": [{        "Effect": "Allow",        "Action": [            "kms:Encrypt",            "kms:Decrypt",            "kms:ReEncrypt*",            "kms:GenerateDataKey*",            "kms:DescribeKey",            "kms:CreateGrant",            "kms:ListGrants"        ],        "Resource": [            "arn:aws:kms:region:account-id:key/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"        ]    }]}Step 2: Create and configure the Amazon EMR security configurationOpen the Amazon EMR console.Choose Security configurations.Choose Create.Under Local disk encryption, choose Enable at-rest encryption for local disks.For Key provider type, choose AWS KMS.For AWS KMS customer master key, choose the key ARN of your KMS key.Select Encrypt EBS volumes with EBS encryption.Choose Create.Step 3: Provision an EMR cluster with the security configurationIf you create your EMR cluster using the EMR console, then in Step 4: Security, choose the security configuration that you just created.When creating EMR clusters through other methods, specify the security configuration using the configuration you just created.Follow"