Boto3-1.2.6 has an issue with cloudsearch and cloudsearchdomain
When calling
boto3.client("cloudsearchdomain", endpoint_url = "http://xxx.xxx.xxx")
had following error with Boto3-1.2.6 and botocore-1.4.0
Traceback (most recent call last):
File "app.py", line 81, in dataCS
size = size)
File "/usr/local/lib/python3.4/site-packages/botocore/client.py", line 228, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.4/site-packages/botocore/client.py", line 486, in _make_api_call
raise ClientError(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (SignatureDoesNotMatch) when calling the Search
operation: Credential should be scoped to correct service: 'cloudsearch'.
Uninstalled boto3 and reinstalled with previous version Boto3-1.2.5 and botocore-1.3.30, everything is perfect with older version.
Confirmed, looks like a regression from https://github.com/boto/botocore/pull/769. We'll get this fixed.
guys when is this fix going to be in tokyo lambda, its failing today.
This has been released in botocore. You just need to update the version of botocore to the latest version to pick up this fix.
Lambda has some version of Boto there by default. Is there any workaround to force the broken version to pass the right signature name by default? There's no way to force AWS to upgrade their Boto version.
Nevermind - the solution to this for now, if any other Lambda users stumble across is, is just to package your own version of boto3 from a virtualenv into your Lambda function zip package. That's probably good long run advice anyway so you don't find yourself in this type of situation again.
I am doing monkey patch right now to those two functions that are affected. FYI today the same bug has spread to us-east-1 , Virginia. funny that Tokyo got hit first