Getting unknown host on APM agent for AWS tomcat servers