2 Steps to Install Elasticsearch on an AWS EC2 Amazon Linux 2 Instance

Akintola L. F. ADJIBAO
4 min readDec 5, 2021

The best way to do it in 2 minutes.

Photo by Csaba Balazs on Unsplash

Truth be told, there are tons of solutions out there to set up an Elasticsearch instance right away with a lot of awesome features and with the least headache.

That said, for many reasons, you may need a self-hosted instance — for your staging deployment or to decrease your bill, to learn, and so on.

AWS offers to anyone who creates a new account, 12 months of free usage of most of its services. In this article, I’ll walk you through the steps to install your own Elasticsearch instance on AWS and we’ll be using Amazon Linux 2 as our instance Operating System.

Prerequisites

  • You need an AWS account
  • … and that’s all.

1- Set up the EC2 instance

First, head up to your AWS console and type EC2 in the AWS services search bar. Once in the EC2 section, launch a new instance.

Choose Amazon Linux 2 as the platform to install your instance.

--

--