aws-lambda icon indicating copy to clipboard operation
aws-lambda copied to clipboard

Can't connect to elastic cloud

Open IgorZet opened this issue 4 years ago • 1 comments

With the proper hostname and encpass defined the Lambda still fails to connect to elastic cloud with the following error:

Response: {"error":{"root_cause":[{"type":"security_exception","reason":"unable to authenticate user [elastic] for REST request [/_bulk]","header":{"WWW-Authenticate":["Bearer realm="security"","ApiKey","Basic realm="security" charset="UTF-8""]}}],"type":"security_exception","reason":"unable to authenticate user [elastic] for REST request [/_bulk]","header":{"WWW-Authenticate":["Bearer realm="security"","ApiKey","Basic realm="security" charset="UTF-8""]}},"status":401}

I checked that the password is properly decoded and I can connect with the same to elastic cloud. Any idea, may be something changed in elastic that requires tweaking?

IgorZet avatar May 28 '20 08:05 IgorZet

Hi @IgorZet, unfortunately I do not have an AWS Lambda => Elastic Cloud setup available anymore, so cannot tell if this still works as expected. Pull requests are welcome though!

blueimp avatar May 28 '20 12:05 blueimp