2011-10-03

C#, Compact .NET, WP7 SDK 7.1 & AWS EC2

That title sounds like the beginning of some ancient joke. Well, it's anything but ancient! I just wanted to post some quick code on how to sign AWS EC2 query requests using Compact .NET in C#.

Since there is no high level API for AWS for the compact version of .NET (ie. when used for the WP7 SDK), your best bet is to make query requests directly. That also means you need to sign your requests yourself. Since I was unable to find a working example, I turned to an old piece of code and ported that to work with the compact version of .NET / WP7 SDK 7.1 (Mango) instead.