1

My AWS Lambda function can't access the hive server running on the master node. It times out -- the same behavior as if you try to access the node from a non white-listed IP. Obviously adding the Lambda function as a whitelisted IP is a non starter.

How do I configure AWS Lambda so that it can access services on the EMR master node?

Walrus the Cat
  • 2,314
  • 5
  • 35
  • 64

1 Answers1

8

Make your lambda run in private subnets of the same VPC as that of your EMR cluster.

In the EMR security group, add an inbound rule with the port that needs to be accessed with the lambda security group as source security group id. This will allow all lambda requests.

See if this helps !!

omuthu
  • 5,948
  • 1
  • 27
  • 37