 It seems that --elasticsearch-version is not use.
import json
import time
from random import randint
from flask import Flask, jsonify, request, make_response
from localstack.utils import persistence
from localstack.services import generic_proxy
from localstack.utils.aws import aws_stack
from localstack.constants import TEST_AWS_ACCOUNT_ID
from localstack.utils.common import to_str
from localstack.utils.analytics import event_publisher
from localstack.services.plugins import check_infra, Plugin
APP_NAME = 'es_api'
API_PREFIX = '/2015-01-01'
ES_DOMAINS = {}
app = Flask(APP_NAME)
app.url_map.strict_slashes = False
def error_response(error_type, code=400, message='Unknown error.'):