Oct 13, 2011. | By: Owen Davies
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.
<?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <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"/> </appSettings> </configuration>
AmazonS3Config config = new AmazonS3Config(); config.ServiceURL = appConfig["AWSEUEndPoint"]; using (client = Amazon.AWSClientFactory.CreateAmazonS3Client(accessKeyID, secretAccessKeyID, config))
I'm a .NET Software Engineer that is currently working at SafeToNet. Opinions are my own.
Nant (1) Load testing (1) Visual studio (1) Azure (24) Aws (1) Asp.net (1) Tfs (1) Puppetlabs reports (2) Devops (2) Iis (1) Powershell (6) Arm templates (2) Arm template (1) Azure (5) Powershell (1) Dsc (1) Arm (1) Jekyll (1) Vsts (1)