works with aws now.  Added an error handler for a bad auth code