Transport Error 503

Traceback (most recent call last):
File "/usr/lib/python3.8/", line 90, in runcode
exec(code, self.locals)
File "", line 1, in
File "/usr/local/lib/python3.8/dist-packages/elasticsearch/client/", line 347, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/elasticsearch/client/", line 642, in get_alias
return self.transport.perform_request(
File "/usr/local/lib/python3.8/dist-packages/elasticsearch/", line 466, in perform_request
raise e
File "/usr/local/lib/python3.8/dist-packages/elasticsearch/", line 427, in perform_request
status, headers_response, data = connection.perform_request(
File "/usr/local/lib/python3.8/dist-packages/elasticsearch/connection/", line 279, in perform_request
raise ConnectionTimeout("TIMEOUT", str(e), e)
elasticsearch.exceptions.ConnectionTimeout: ConnectionTimeout caused by - ReadTimeoutError(HTTPConnectionPool(host='localhost', port=9200): Read timed out. (read timeout=10))

am getting this error in my aws. when I tried to reinstall elasticsearch.
note: my max and min heap size is 2gb , my total ram is 16GB. is
bootstrap.server = true

when i start to index , am geting this error

Can you curl localhost:9200?