Search code examples
amazon-web-serviceselasticsearchcommand-linealexa-skills-kit

Trying to index data into Amazon elastic search


I am going through the following tutorial on Amazon's website to learn about how to use elastic search in my application: https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-gsg-upload-data.html

When I run the command:

     curl -XPOST MY_DOMAIN_ENDPOINT/_bulk --data-binary 
     @bulk_movies.json -H 'Content-Type: application/json'

I am getting the following message:

curl: (3) Port number ended with 'a'

What is going wrong?


Solution

  • OP was facing the issue as he wasn't passing the proper endpoint, once he passed the proper endpoint he issue was resolved.

    So to avoid these kinds of issue, Please don't copy everything from the tutorial and pass the actual values.

    One issue which happens very frequently, although which wasn't the case here is quotes changes when copying from different sources like editors sublime etc or from slack etc if it's not in the code block of slack.