Part 1: Deploy an out-of-the-box Meilisearch instance
1. Launch an instance from the AWS console
After logging into your AWS Console, navigate to the “Compute” service. Then go to “EC2”, and finally open your “Instances” console.
2. Select ‘Meilisearch’ AMI from ‘Community AMIs’
You will now select which AMI or system Image to use to run your instance. Typemeilisearch
in the search bar and select the “Community AMIs” tab on the left sidebar. Meilisearch’s owner id is 567502172578.

3. Size and specs
Select the specifications of the server you want Meilisearch to run on.
The free tier is sufficient for tests or prototypes, but not recommended for large datasets.
4. Instance details
Here you can specify details of your Instance. Since this section is not required to run Meilisearch, we won’t cover it in this guide.
5. Storage
Choose the storage device and size for your Meilisearch instance.
6. Tags
Tags are used to identify your resources in AWS. They are not required by Meilisearch.
7. Security groups: Networking and connectivity
For your Meilisearch instance to communicate with the outside world, it is very important to allow SSH connections, HTTP, and HTTPS traffic.- Click on “Add rule” and select “SSH” from the drop-down menu. This will open the SSH port (22)
- Click on “Add rule” and select “HTTP” from the drop-down menu. This will open the HTTP port (80)
- Click on “Add rule” and select “HTTPS” from the drop-down menu. This will open the HTTPS port (443)

8. Set and download key pair
Once you have reviewed your instance configuration, there is one last step before you can launch your Instance. Click on “Launch” and a pop-up window will ask you to select a key pair. This key pair is very important as it will be your private key to access the instance via SSH, which is required to configure your Meilisearch instance in a production environment.
9. Enjoy your Meilisearch instance running on AWS
Your instance may take a minute or two to get up and running (see the “Instance state” column).

Part 2: Configure production settings
Configuring your Meilisearch instance in a production environment is not just straightforward—it’s completely automated. Simply establish an SSH connection with your instance, and a script will guide you through the process.1. Make your domain name point to your instance IP
If you want to use your own domain name (or sub-domain), add anA record
in your domain name provider account. Otherwise, you can skip this step.

200 OK
status code as shown in the example below:
2. Set API key and SSL (HTTPS)
Meilisearch is currently running in a development environment. You haven’t set up an API key, meaning that anyone can read/write from your Meilisearch, and you aren’t using HTTPS yet, which makes this configuration unsafe for production. To start the configuration process, connect via SSH to your new Meilisearch instance and follow the instructions that appear.2.1. Secure your key pair
Open a terminal window and navigate to wherever you saved your key pair. It should be a.pem
file.
Run the following command to secure your key pair.
2.2. Run the configuration script
Next, start a new SSH connection with the Public IPv4 address or your domain name, using ‘admin’ as the username. You’ll also need to supply the relative path to your.pem
file.
yes
and press Enter
to accept the authentication process.
A script will run automatically, asking for your settings and desired configuration. If you want to run this script again at any time, you can do so by using the following command:
3. Enjoy your ready-to-use Meilisearch instance
Your Meilisearch Instance is up and running on AWS, and it is ready to be used in production. To check if everything is running smoothly, do another HTTP call to the/health
route:
200 OK
status code as shown in the example below: