aws / aws-cli

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

Uploading data from Amazon S3 to Amazon Cloudsearch error. #2729

Closed varun1993 closed 7 years ago

varun1993 commented 7 years ago

I am trying to upload the data from Amazon S3 Bucket to Amazon CloudSearch domain using AWS CLI. When I try to execute the command

cs-import-documents -d mydomain --source s3://mybucket/myobject.json

I get the following error : AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied)

When I try to use the command

aws cloudsearchdomain upload-documents and pass in the s3 bucket url (https://s3-us-west-1.amazonaws.com/mybucket/myobject.json)

I get the following error:

Error parsing parameter '--documents': Blob values must be a path to a file.

I have also gone through the error log file and the documentation for Amazon CloudSearch but I am not able to resolve the issue.

I have given all read write permissions access in Amazon S3 bucket and Amazon CloudSearch Domain. I am also using the latest version of AWS CLI .

I would really appreciate it if someone can help me regarding this.

kyleknap commented 7 years ago

Unfortunately, the tool you are using is not the AWS CLI. Instead, it appears to be a standalone CloudSearch command line tool so there is not much help that we can provide here as this repository is specifically for AWS CLI related issues. We do not have really any knowledge about the tool you are using. Instead, I would recommend opening a thread in the AWS Developer Forums to get help with that command line tool.