Have had my head up in the cloud for over a year now. But very much inside Azure.

I know a lot of people us Amazon, but never had a reason to look into it, but needed to write into the Amazon S3 recently. So I downloaded the .NET sdk and the code samples, all looked simple enough.

After playing for while I got it going up but received this error:

Maximum number of retry attempts reached : 3

Couldn’t find much online to get me any further. Found some answers eventually.

I had to actually explicitly specify the AWSEUEndPoint, I’m not sure if this is a .NET thing or because it was registered to the EU endpoint (I don’t know what the third party specified) and maybe the sdk always assumes US. But it works.

Inside my app.config:

<?xml version="1.0" encoding="utf-8" ?>
		<add key="AWSAccessKey" value="MyAccessKey"/>
		<add key="AWSSecretKey" value="MySuperSecretKey"/>
		<add key="bucketName" value="myBucket"/>
		<add key="AWSEUEndPoint" value="s3-eu-west-1.amazonaws.com"/>

My Code:

AmazonS3Config config = new AmazonS3Config();
config.ServiceURL = appConfig["AWSEUEndPoint"];
using (client = Amazon.AWSClientFactory.CreateAmazonS3Client(accessKeyID, secretAccessKeyID, config))



Founded in 2009, Odity is a software consultancy based in the United Kingdom.

Social Links

Our Bunker

United Kingdom.