While performing an inner loop of querying an S3 bucket’s contents, I encountered the following error:
An unhandled exception of type ‘Amazon.S3.AmazonS3Exception’ occurred in AWSSDK.Core.dll
Additional information: The AWS Access Key Id you provided does not exist in our records.
This seemed strange as the Access key and the Secret Access key were both correct.
I had implemented the following code in the inner loop:
GetObjectResponse objectResponse = new AmazonS3Client(s3Object.BucketName, awsAccessKey, awsSecretAccessKey).GetObject(requestObject);