zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Amazon EC2 Instance Meta Data

August 5, 2019 by Igor Drobot Leave a Comment

AWS provides by default over the Link-local address a kind of micro-service-endpoint for Meta Data retrievement, which can be reached from a running instance by curl or any other tool.

Main goal of this endpoint, to provide AWS related information without having access to the AWS-console or AWS-command line interface.

The endpoint address is always: 169.254.169.254.
This range 169.254.0.0/16 is also known as APIPA – Automatic Private IP Addressing.

The endpoint can provide information about the lan-, wan-ip assignment. Assigned security group, availability zone and instance type information.
Examples:

curl http://169.254.169.254/latest/meta-data/local-ipv4
curl http://169.254.169.254/latest/meta-data/public-ipv4
curl http://169.254.169.254/latest/meta-data/instance-id

This endpoint can help with scripts and backend logics for any automation tasks :)

Filed Under: Linux Tagged With: Amazon, AWS, Cloud

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok