Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS EMR terminated with validation error - security group error

When we try launch AWS EMR in Mumbai region, it gets terminated in 5-6 seconds with the following validation error.

"Terminated with errors The EC2 Security Groups [sg-XXXXXXXXXX] contain one or more ingress rules to ports other than [22] which allow public access."

These are default security groups created for AWS EMR in Mumbai region. How to overcome this?

like image 871
Kavya shree Avatar asked Dec 15 '25 07:12

Kavya shree


2 Answers

Make sure you're not blocking the ports yore using (from public nets). You can go to Amazon EMR, then Block public access and add the ports you want to access from public network in Exceptions (or just disabling the option Block public access).

Final cluster's Block public access settings

like image 174
DavidStreet Avatar answered Dec 16 '25 23:12

DavidStreet


I faced this issue and resolved it by doing the below.

Before creating your EMR cluster go to our Security Groups( for ElasticMapReduce-master and ElasticMapReduce-slave) and delete all the inbound rules other than for SSH(Port 22).This will resolve the issue.

like image 25
RaHuL VeNuGoPaL Avatar answered Dec 16 '25 22:12

RaHuL VeNuGoPaL



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!