EMR cluster Kerberos should be enabled¶
The access permissions and authorizations can be managed and incorporated with the principles of least privilege and separation of duties, by enabling Kerberos for AWS EMR clusters.
How to fix¶
Attribute kerberos_attributes[0].realm of aws_emr_cluster must be non-empty.
Implementation options¶
Choose the option that matches how you manage Terraform. All options satisfy this control.
Option 1: Compliance.tf module (recommended)¶
Use the compliance.tf registry module to get this control enforced by default. This control is mapped to the frameworks shown in the tabs above. To begin, see get started with compliance.tf.
module "emr" {
source = "cfrpart11.compliance.tf/terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
module "emr" {
source = "cisv80ig1.compliance.tf/terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
module "emr" {
source = "ffiec.compliance.tf/terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
module "emr" {
source = "hipaa.compliance.tf/terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
module "emr" {
source = "hipaasecurity2003.compliance.tf/terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
module "emr" {
source = "nist800171.compliance.tf/terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
module "emr" {
source = "nist80053rev4.compliance.tf/terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
module "emr" {
source = "nistcsfv11.compliance.tf/terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
module "emr" {
source = "nydfs23.compliance.tf/terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
module "emr" {
source = "pcidss.compliance.tf/terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
module "emr" {
source = "rbiitfnbfc.compliance.tf/terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
module "emr" {
source = "soc2.compliance.tf/terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
Option 2: Open source module (terraform-aws-modules)¶
If you use terraform-aws-modules/emr/aws, configure the required module inputs to satisfy this control. You can later migrate to the compliance.tf module with minimal changes because it is compatible by design.
module "emr" {
source = "terraform-aws-modules/emr/aws"
version = ">=3.0.0"
applications = ["Spark"]
core_instance_group = {
instance_count = 1
instance_type = "m5.xlarge"
}
ec2_attributes = {
subnet_id = "subnet-12345678"
}
master_instance_group = {
instance_type = "m5.xlarge"
}
name = "abc123"
release_label = "emr-7.0.0"
vpc_id = "vpc-12345678"
}
Option 3: Terraform AWS provider resources¶
If you manage resources directly, configure the relevant Terraform AWS provider resources to meet this control. See docs for the resources involved: aws_emr_cluster.
resource "aws_emr_cluster" "this" {
kerberos_attributes {
kdc_admin_password = "ChangeMe123!"
realm = "EC2.INTERNAL"
}
name = "pofix-example-cluster"
release_label = "emr-6.15.0"
security_configuration = "example-security-config"
service_role = "arn:aws:iam::123456789012:role/example-role"
}
Which option should I choose?
- Compliance.tf module (recommended): controls enforced by default and mapped to frameworks.
- Open source module (
terraform-aws-modules): compatible by design with compliance.tf. Same variable names for an easy, low-change migration path when you are ready. - Terraform AWS provider resources: manage Terraform resources directly.
Tool mappings¶
Use these identifiers to cross-reference this control across tools, reports, and evidence.
Compliance.tf (CTF) Control:
emr_cluster_kerberos_enabledAWS Config Managed Rule:
EMR_KERBEROS_ENABLEDPowerpipe Control:
aws_compliance.control.emr_cluster_kerberos_enabled