Installing ElasticSearch in AWS

This post will walk through installing ElasticSearch in AWS using minimal setup and defaults.

Under the EC2 dashboard, click on Launch Instance.
– Choose Amazon Linux for the AMI.
– Choose the EC2 instance type you need.
*The t2.micro may be free tier eligible.

This next step is optional and the code for the user data can be executed manually later if you wish.

Under Advanced Details use the script below for the user data. This will install ElasticSearch 2.0.

#Script installs ES
yum install elasticsearch-2.0.0.rpm -y

Now click Review and Launch.

Once the system is up you an connect and start the ElasticSearch service.

# service elasticsearch start

Check the status:

# curl -i localhost:9200

We want to see something similar to this:

HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 324

  "name" : "Hammer Harrison",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "2.0.0",
    "build_hash" : "de54438d6af8f9340d50c5c786151783ce7d6be5",
    "build_timestamp" : "2015-10-22T08:09:48Z",
    "build_snapshot" : false,
    "lucene_version" : "5.2.1"
  "tagline" : "You Know, for Search"

And that completes a simple install of ElasticSearch in AWS!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s