Turning AWS SDK into an AngularJS service...