Question regarding specifying "localhost" and deploying to Lambda

This is strange and contrary, to my post here

My ES is not exposed to internet but when I run ./functionbeat im getting messages on my cli?