<?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>Tech Notes &#187; EC2</title>
	<atom:link href="http://www.ryannitz.org/tech-notes/tag/ec2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ryannitz.org/tech-notes</link>
	<description>Miscellaneous technology examples and notes</description>
	<lastBuildDate>Sun, 03 Apr 2011 16:48:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<image>
  <link>http://www.ryannitz.org/tech-notes</link>
  <url>http://ryan-nitz/favicon.ico</url>
  <title>Tech Notes</title>
</image>
		<item>
		<title>Create Amazon EC2 AMI</title>
		<link>http://www.ryannitz.org/tech-notes/2009/08/09/create-amazon-ec2-ami/</link>
		<comments>http://www.ryannitz.org/tech-notes/2009/08/09/create-amazon-ec2-ami/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 19:36:10 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Examples]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[EC2]]></category>

		<guid isPermaLink="false">http://ryan-nitz.com/tech-notes/?p=202</guid>
		<description><![CDATA[Creating an Amazon EC2 AMI from an existing image seems like a challenging process however, it is actually fairly simple. Before looking at the steps to create the image, first have the following AWS information/files handy: Access key Secret Key Account Number Private key (e.g., pk-37BKCPZ2AVHVSYBK2WZXUQ9D4GQZEB4Q.pem) Certificate (e.g., cert-38BKCPZ1BOHVSYBK4WZXUQ4D4GQZEB2Q.pem) Next, login to your instance and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-92" title="aws" src="http://www.ryannitz.org/tech-notes/wp-content/uploads/2008/12/aws.gif" alt="aws" width="150" height="60" /></p>
<p>Creating an Amazon EC2 AMI from an existing image seems like a challenging process however, it is actually fairly simple. Before looking at the steps to create the image, first have the following AWS information/files handy:</p>
<ul>
<li>Access key</li>
<li>Secret Key</li>
<li>Account Number</li>
<li>Private key (e.g., pk-37BKCPZ2AVHVSYBK2WZXUQ9D4GQZEB4Q.pem)</li>
<li>Certificate (e.g., cert-38BKCPZ1BOHVSYBK4WZXUQ4D4GQZEB2Q.pem)</li>
</ul>
<p>Next, login to your instance and make sure you have the <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=368" target="_blank">Amazon AMI</a> and <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&amp;categoryID=88" target="_blank">EC2 API</a> tools installed and available in your PATH. Also, upload your private key and certificate to the server.</p>
<p>Now you are ready to create your image file. First create a directory to store this image in.</p>
<p>E.g.</p>
<pre>mkdir /mnt/ami</pre>
<p>The actual AMI bundle is created by running:</p>
<pre>ec2-bundle-vol -d /mnt/ami -k YOUR_PRIVATE_KEY -c YOUR_CERTIFICATE -u YOUR_ACCOUNT_NUMBER</pre>
<p><strong>note:</strong> The account number should not contain any dashes (&#8216;-&#8217;).</p>
<p>Creating the bundle takes a few minutes. After the bundle has been created, it is time to upload it to S3. This is done by running:</p>
<pre>ec2-upload-bundle -b YOUR_BUNDLE_NAME -m /mnt/ami/image.manifest.xml -a YOUR_ACCESS_KEY -s YOUR_SECRET_KEY</pre>
<p>This walks through the files generated by the bundle command and inserts them into S3.</p>
<p>After your files have been uploaded, it is time to register the AMI using the following command:</p>
<pre>ec2-register YOUR_BUNDLE_NAME/image.manifest.xml</pre>
<p>The result of running this command is your AMI id.</p>
<p>E.g.</p>
<pre>ami-323FEA</pre>
<p>Finally, your AMI has been created, uploaded and registered and you are able to launch a new instance of your AMI.</p>
<p>If you need more help, there is <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=938" target="_blank">a good video</a> available from an Amazon employee. Additionally, take a look at the <a href="http://docs.amazonwebservices.com/AmazonEC2/dg/2006-06-26/bundling-an-ami.html" target="_blank">Amazon docs</a> on the subject.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryannitz.org/tech-notes/2009/08/09/create-amazon-ec2-ami/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Amazon EBS</title>
		<link>http://www.ryannitz.org/tech-notes/2008/12/20/create-amazon-ebs/</link>
		<comments>http://www.ryannitz.org/tech-notes/2008/12/20/create-amazon-ebs/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 18:21:06 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Examples]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[EBS]]></category>
		<category><![CDATA[EC2]]></category>

		<guid isPermaLink="false">http://leisuremech.com/?p=91</guid>
		<description><![CDATA[The Amazon Web Services blog has a good post on how to setup an EBS volume using ElasticFox: Amazon EBS (Elastic Block Store) &#8211; Bring Us Your Data I do not see a way to schedule snapshots through the UI so, you may have to write a script to accomplish this feat. Once you have [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-92" title="aws" src="http://www.ryannitz.org/tech-notes/wp-content/uploads/2008/12/aws.gif" alt="aws" width="150" height="60" /></p>
<p>The <a href="http://aws.typepad.com/" target="_blank">Amazon Web Services blog</a> has a good post on how to setup an EBS volume using <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=609" target="_blank">ElasticFox</a>:</p>
<p><a href=" http://aws.typepad.com/aws/2008/08/amazon-elastic.html" target="_blank">Amazon EBS (Elastic Block Store) &#8211; Bring Us Your Data</a></p>
<p>I do not see a way to schedule snapshots through the UI so, you may have to write a script to accomplish this feat.</p>
<p>Once you have created your EBS volume you still have to mount the new device. First add the following line to /etc/fstab:</p>
<pre>/dev/YOUR_DEVICE_NAME  /data  ext3  defaults 0 0</pre>
<p>E.g.</p>
<pre>/dev/sde  /data  ext3  defaults 0 0</pre>
<p>Next, you need to format the device. This is accomplished by executing:</p>
<pre>mkfs.ext3 /dev/YOUR_DEVICE_NAME</pre>
<p>E.g.</p>
<pre>mkfs.ext3 /dev/sde</pre>
<p>This post assumes you are using the <a href="http://en.wikipedia.org/wiki/Ext3" target="_blank">ext3 filesystem</a>. Next, you need to mount the device. This is done by issuing:</p>
<pre>mount -t ext3 /dev/YOUR_DEVICE_NAME /DIRECTORY_TO_MOUNT_IN</pre>
<p>E.g.</p>
<pre>mount -t ext3 /dev/sde /data</pre>
<p>After you mount the device you should be good to go. If possible, reboot your instance to make sure the process mounted properly on a restart.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryannitz.org/tech-notes/2008/12/20/create-amazon-ebs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

