I want to connect to Amazon ES by EC2 using Curl? Watch this..
It’s worth bearing in mind here that “Standard clients, such as curl, cannot perform the request signing that is required of identity-based access policies. You must use an IP address-based access policy that allows anonymous access to successfully perform the instructions for this step.”
Luckily we can use boto to do the hard work for us. Check this out..