EC2 Instance Metadata

Metadata is an important concept in the IT world.  In short, it simply is data about your data.  For EC2, metadata is the information about your EC2 instance, such as the public ip address, or the security groups it belongs to.

How do we access the EC2 metadata, or info about our instance once we logged in?  Let’s do that now.

  • Firstly, Launch and Connect to an EC2 instance.   Click on the link to learn how to do that.  I’ll probably do a post on it, since it is a fundamental skill to know how to do.  I’ve done it a bunch of times already, so it’s become second nature.
  • Secondly, give yourself administrator rights once you’ve logged into the instance.  The command is:  “SUDO SU
  • Now, we access the metadata of the instance at the URL:  Use the curl command.

  • Next, we store some metadata on your EC2 instance using the write command “>” . I circled it up top.
  • After you see the download finished, open the file to verify the metadata has been written.   I’m using the VI editor to view the file.  You can use other editors, like nano if you wish.

And there you have it.  We logged onto our EC2 instance, then we fetched the metadata of the instance, and wrote it to a file.



  • I see you don’t monetize your page, don’t waste your traffic, you can earn additional cash every month because you’ve
    got high quality content. If you want to know how to make extra money,
    search for: Mertiso’s tips best adsense alternative

  • I have checked your website and i’ve found some duplicate content,
    that’s why you don’t rank high in google’s search results, but there
    is a tool that can help you to create 100% unique articles, search for; Best article rewritwer Ercannou’s essential tools

  • I have noticed you don’t monetize your website,
    don’t waste your traffic, you can earn extra bucks every month because you’ve got
    hi quality content. If you want to know how to make extra bucks, search
    for: Ercannou’s essential adsense alternative

Leave a Reply