Instance Metadata in the Elastic Compute Cloud

Last updated on May 26,2023 2.2K Views

Instance Metadata in the Elastic Compute Cloud

edureka.co

This post will tell you how to access the instance’s metadata from the Elastic Compute Cloud.

Instance Metadata in the Elastic Compute Cloud:

Instance Metadata in the Elastic Compute Cloud is the information related to your data. Metadata can be categorized on the basis of the data that is unique to an instance and the data which is common for all the instances on EC2.

The Common Metadata includes:

The Unique Metadata includes:

We proceed with launching and connecting to the instance.

When you launch an Ec2 instance, it appears in the Ec2 Dashboard like:

We are using an Ubuntu AMI.

After you SSH in it and the connection has been established to the instance, you give the command:

curl http://169.254.169.254/latest/meta-data

This command lists out the instance’s metadata. 169.254.169.254 is the IP used to access the metadata of the servers, present virtually on the cloud. Unlike other IP addresses, instead of routing , it fetches the server’s metadata for you.

The above snapshot lists the metadata of our Ubuntu instance which is helpful in extracting the instance details and differentiating  the instance.

Unlock the power of the cloud with our comprehensive Cloud Computing Course.

Instance-ID : It is an unique identifier and a combination of numeric and alphanumeric values which are based on the resource allocation of a particular instance. How is this combination decided, only AWS  knows about this.

Though it can be clear from observation that:

Instance Type : This tells what type memory, storage and compute power the instance possesses, e.g. This is a 615 Mb ubuntu machine.

Kernal- Id :

The Local Hostname can be known as:

Local-ipv4 :

Public-keys : The name of the key-pair is displayed.

The AMI-id can be known from the EC2 instance as:

AMI-launch-index :

Block Device Mappingami, ephemeral, root.

Similarly, Various other data can be known as:

Upcoming Batches For AWS Certification Training Course for Solutions Architect
Course NameDateDetails
AWS Certification Training Course for Solutions Architect

Class Starts on 4th May,2024

4th May

SAT&SUN (Weekend Batch)
View Details
AWS Certification Training Course for Solutions Architect

Class Starts on 18th May,2024

18th May

SAT&SUN (Weekend Batch)
View Details
AWS Certification Training Course for Solutions Architect

Class Starts on 20th May,2024

20th May

MON-FRI (Weekday Batch)
View Details
BROWSE COURSES