aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.44k stars 4.09k forks source link

cloudsearchdomain upload-documents no longer works with IAM/Roles #943

Closed ndp805 closed 9 years ago

ndp805 commented 9 years ago

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

jamesls commented 9 years ago

Looking into this...

jamesls commented 9 years ago

I've identified the issue and am working on a fix. Thanks for reporting.