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?
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).

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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With