This post has now been transferred to the AWS blog. The original motivation for this post was this post from Stack Overflow.