AWS Architect Certification Training (87 Blogs) Become a Certified Professional
AWS Global Infrastructure

Cloud Computing

Topics Covered
  • AWS Architect Certification Training (78 Blogs)
  • AWS Development (7 Blogs)
  • SFDC Administration Foundation (1 Blogs)
  • Salesforce Admin and Dev Foundation (22 Blogs)
SEE MORE

Instance Metadata in the Elastic Compute Cloud

Last updated on Sep 05,2024 2.3K Views


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 instance – type : It can be a Linux, Ubuntu, windows, etc. based on the Amazon AMI you choose.
  • Security Group : It can be modified accordingly and can be same for more than one instance.
  • Key-Pair : All your instances can be accessed by a single key-pair.

The Unique Metadata includes:

  • Instance –Id
  • Public-Hostname
  • Public IP Address

We proceed with launching and connecting to the instance.

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

Ec2 Dashboard

We are using an Ubuntu AMI.

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.

Ubuntu Instance Metadata

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:

  • i – instance
  • r – reservation
  • vol – EBS volume
  • snap – EBS snapshot
  • ami – Amazon machine image
  • aki – Amazon kernel image
  • ari – Amazon ramdisk image

Instance-ID

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

Instance Type

Kernal- Id :

Kernal- Id

The Local Hostname can be known as:

Local Hostname

Local-ipv4 :

Local Hostname

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

Public-keys

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

AMI-Id

AMI-launch-index :

AMI Launch Index

Block Device Mappingami, ephemeral, root.

Block Device Mapping

Similarly, Various other data can be known as:

Other Data

Find out our Cloud Architect Training in Top Cities

India
Bangalore
Hyderabad
Pune
Mumbai
Delhi

 

Stay Ahead in the Tech World with Our Cloud Architect Masters Program!

Upcoming Batches For AWS Certification Training
Course NameDateDetails
AWS Certification Training

Class Starts on 23rd November,2024

23rd November

SAT&SUN (Weekend Batch)
View Details
AWS Certification Training

Class Starts on 7th December,2024

7th December

SAT&SUN (Weekend Batch)
View Details
AWS Certification Training

Class Starts on 14th December,2024

14th December

SAT&SUN (Weekend Batch)
View Details
Comments
0 Comments

Join the discussion

Browse Categories

webinar REGISTER FOR FREE WEBINAR
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP

Subscribe to our Newsletter, and get personalized recommendations.

image not found!
image not found!

Instance Metadata in the Elastic Compute Cloud

edureka.co