ec2-hostname

print ec2 public hostname by querying the internal hypervisor http interface

Usage no npm install needed!

<script type="module">
  import ec2Hostname from 'https://cdn.skypack.dev/ec2-hostname';
</script>

README

ec2 hostname

print ec2 public hostname by querying the internal hypervisor http interface

    npm install -g ec2-hostname