<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cloudiquity &#187; Instance information</title>
	<atom:link href="http://www.cloudiquity.com/tag/instance-information/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cloudiquity.com</link>
	<description>A blog about Cloud, Grid and HPC technologies</description>
	<lastBuildDate>Wed, 01 Feb 2012 12:56:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Finding information about an Amazon EC2 instance</title>
		<link>http://www.cloudiquity.com/2009/02/finding-information-about-an-amazon-ec2-instance/</link>
		<comments>http://www.cloudiquity.com/2009/02/finding-information-about-an-amazon-ec2-instance/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 09:54:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Curl]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Instance information]]></category>

		<guid isPermaLink="false">http://www.cloudiquity.com/?p=131</guid>
		<description><![CDATA[One thing hit me when I was working with EC2 and I wanted to find some information about the instance itself. This did not seem to be readily available and I spent a frustrating 45 minutes trying to get what I was looking for. Eventually I found a very easy way to get the amazon [...]]]></description>
			<content:encoded><![CDATA[<p>One thing hit me when I was working with EC2 and I wanted to find some information about the instance itself. This did not seem to be readily available and I spent a frustrating 45 minutes trying to get what I was looking for. Eventually I found a very easy way to get the amazon instance information using CURL. Enter the following command appended by the Amazon information you are looking for:</p>
<p><span style="color: #808080;"><strong>$ curl http://169.254.169.254/1.0/meta-data</strong></span><span style="color: #808080;"><strong>/</strong></span></p>
<p>This command can be appended with:<br />
<span style="color: #808080;"><strong>ami-id<br />
ami-launch-index<br />
ami-manifest-path<br />
hostname<br />
instance-id<br />
local-ipv4<br />
public-keys/<br />
reservation-id<br />
security-group</strong><strong>s</strong></span></p>
<p><span style="color: #808080;"><strong></strong></span>You can also pass data to the instance when you start it using EC2 tools  and retrieve the data within the instance using the above command. E.g if you started the instance using the command<br />
<span style="color: #808080;"><strong>ec2-run-instances ami-3abe5953 -d &#8220;Some data I need&#8221; </strong></span></p>
<p>In the instance<br />
<span style="color: #808080;"><strong>$ curl http://169.254.169.254/1.0/user-data</strong></span><br />
will return<br />
<span style="color: #808080;"><strong>Some data I need</strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudiquity.com/2009/02/finding-information-about-an-amazon-ec2-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

