I'm trying to just test out AWS s3 with eclipse using Java, I'm just trying to execute the Amazon s3 sample, but it doesn't recognise my credentials, and I'm sure my credentials are legitimate, it gives me the following error:
===========================================
Getting Started with Amazon S3
===========================================Listing buckets
Caught an AmazonServiceException, which means your request made it to Amazon S3, but was rejected with an error response for some reason.Error Message: Status Code: 403, AWS Service: Amazon S3, AWS Request ID: 057D91D336C1FASC, AWS Error Code: InvalidAccessKeyId, AWS Error Message: The AWS Access Key Id you provided does not exist in our records.
HTTP Status Code: 403
AWS Error Code: InvalidAccessKeyId
Error Type: Client
Request ID: 057D91D336C1FASC
The AWS Access Key Id you provided does not exist in our records
means it is receiving an invalid access key. you might have been passing the access key with some invisible characters. I had seen similar error on my ubuntu while working withAWS-CLI
. Later found that it was a problem with the way I copy/pasted the key. So, visually, the key looked fine to me but it had some invisible characters appended to it. – slayedbylucifersessionToken
(but this was in Objective-C). Might be help to others. – RyanJM