Entries tagged with elasticsearch

Setting up ElasticSearch with Basic Auth and SSL for use with Python


I'm interested in learning to use ElasticSearch, so I thought I'd document how I set it up on my EC2 instance. Because I wanted to write code on my laptop, I needed to expose ElasticSearch over the public internet, which added a bit of extra complexity. Here is a rough outline of the process:

  • Install ElasticSearch on my EC2 instance.
  • Use supervisor to manage the ElasticSearch process.
  • Use Nginx to create a publicly-visible HTTP endpoint with:
    • Basic auth
    • Self-signed SSL cert
  • Install python locally and connect to my EC2 ElasticSearch server.