Please refer to the Set up Elasticsearch Service > Elasticsearch software compatibility in our developer documentation.