Please use AWS4-HMAC-SHA256 with .Net and AWSSDK

I encountered the error when trying to refactoring old code against a new S3 bucket. New S3 buckets no longer support V3, and thus require the new V4 signature.

In order to make the code work, please uninstall the previous AWS SDK, e.g. “ASWSDK 2.3.3”.

Then install the Nuget Packages AWSSDK.Core and AWSSDK.S3 and AWSSDK.SQS, after which you can rebuild and run your code successfully.

You also need to change some code such as Amazon.AWSClientFactory.CreateAmazonS3Client() is replaced by a new AmazonS3Client().

 

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s