A client error (Unknown) occurred when calling the UploadDocuments operation: User: anonymous is not authorized to perform: cloudsearch:document on resource: arn:aws:cloudsearch:....
Other supporting info:
us-west-2
aws --version
aws-cli/1.5.1 Python/2.6.9 Linux/3.10.35-43.137.amzn1.x86_64
When reverting to aws-cli version 1.4.4 this works properly
On EC2 instance (Amazon Linux) running with IAM role:
$ aws cloudsearchdomain upload-documents --documents testdocs.sdf --content-type "application/json" --endpoint-url ...
A client error (Unknown) occurred when calling the UploadDocuments operation: User: anonymous is not authorized to perform: cloudsearch:document on resource: arn:aws:cloudsearch:....
Other supporting info: us-west-2 aws --version aws-cli/1.5.1 Python/2.6.9 Linux/3.10.35-43.137.amzn1.x86_64
When reverting to aws-cli version 1.4.4 this works properly