Complete rewrite, moved away from aws sdk and using httpclient to send get request.