I recently tried to write code to add and remove content as an Amazon S3 array. I am completely new to Amazon S3 and AmazonWS.Net SDK.
The endpoint of the bucket area is http://sqs.eu-west-1.amazonaws.com , so I built my client as follows:
_s3Client = AWSClientFactory.CreateAmazonS3Client(accessKey, awsSecretKey, new AmazonS3Config().WithServiceURL("http://sqs.eu-west-1.amazonaws.com"));
If I do not use the AmazonS3Config bit, I get this error:
Redirects were returned without a new location. This may be caused by an attempt to access buckets with periods in the name in another region that the client is configured for.
When I insert the AmazonS3Config bit, I no longer get this error, but I do not have access to this bucket at all or to any other bucket that I would normally have access to. Any sent request returns null.
I tested my code with other buckets that are configured for the standard US region, and everything works fine. The only difference is the CreateAmazonS3Client method, where I set the configuration with the EU endpoint.
Can someone give me some recommendations on how I should set up my client to work with a bucket in the EU region (Ireland). I searched for several hours, and every textbook or document that I followed has not yet worked.
source share