you can create an simple socket application and deploy to amazon and try to connect this application from your application. If socket connection is lost you assume internet is lost.