This repository contains Packer configuration for creating Elasticsearch Amazon Machine Images (AMIs).
These AMIs are most useful with the Terraform scripts for using Elasticsearch with Pelias.
As of git tag v7.0.0
, this project supports Elasticsearch 7 only. For Elasticsearch 5 or 6 support, use earlier versions.
- (optional) Configure Elasticsearch version
This step is required only if you don't wish to use the default version of Elasticsearch, which will always be the latest version of Elasticsearch supported by Pelias.
Within the packer directory, create a file called variables.json
and fill it in using the following template:
{
"elasticsearch_version": "7.16.1-amd64"
}
- Run packer
Then, run packer using the following command:
packer build -var-file=variables.json pelias-elasticsearch.json
In under 5 minutes Packer should have built an AMI.