<?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>x83.net &#187; Cloud Computing</title>
	<atom:link href="http://www.x83.net/category/cloud-computing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x83.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 13:53:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Convert from instance store to EBS</title>
		<link>http://www.x83.net/convert-from-instance-store-to-ebs/</link>
		<comments>http://www.x83.net/convert-from-instance-store-to-ebs/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 13:21:53 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[ebs]]></category>
		<category><![CDATA[ec2-register]]></category>
		<category><![CDATA[IO]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[snapshot]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=827</guid>
		<description><![CDATA[Convert from instance store to EBS One client that was running a older EC2 instance was using instance store. From my point of view the only benefit for instance store is that it has better IO..though if you build a RAID using several EBS volumes. Anyway steps are : 1. create 1 EBS volume 2. [...]]]></description>
			<content:encoded><![CDATA[<pre>Convert from instance store to EBS

One client that was running a older EC2 instance was using instance store.</pre>
<pre>From my point of view the only benefit for instance store is that it has</pre>
<pre>better IO..though if you build a RAID using several EBS volumes.</pre>
<pre>Anyway steps are : 

1. create 1 EBS volume
2. attach this volume to your EC2 instance store 

3. format it as ext3
mkfs.ext3 /dev/sdf

4. mount it
mkdir /mnt/ebs
mount /dev/sdf /mnt/ebs

5. sync the instance with the volume
rsync -avHx / /mnt/ebs
rsync -avHx /dev /mnt/ebs

(you can edit /mnt/ebs/fstab and delete the reference towards the /mnt partition)

6. sync &amp;&amp; umount /mnt/ebs

7. create a snapshot of that volume

8. register the ami based on that snapshot</pre>
<pre><strong>ec2-register -s snap-ID -name "EBS instance" -description "EBS instance" -architecture i386</strong></pre>
<pre><strong> -ramdisk ari-d23cd6bb -kernel aki-c43cd6ad</strong>

As a result it should show something like:

IMAGE   ami-newID</pre>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/convert-from-instance-store-to-ebs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon IAM &#8211; Identity and Access Management</title>
		<link>http://www.x83.net/amazon-iam-identity-and-access-management/</link>
		<comments>http://www.x83.net/amazon-iam-identity-and-access-management/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 10:21:35 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[iam]]></category>
		<category><![CDATA[pass]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=795</guid>
		<description><![CDATA[I found out about IAM (Identity and Access Management) these days while I was searching for a way not to give my email/pass for my AWS account. Seems that IAM is pretty easy to use: 1. You add a group where you define the rights. Here you can select either one or multiple of the [...]]]></description>
			<content:encoded><![CDATA[<p>I found out about IAM (Identity and Access Management) these days while I was searching for a way not to give my email/pass for my AWS account. Seems that IAM is pretty easy to use:</p>
<p>1. You add a group where you define the rights. Here you can select either one or multiple of the default values (Administrator full access, Read only, EC2 full access, EC2 read only&#8230;etc) or you can even define custom policies by adding the rules in the Custom profile page. I&#8217;ve selected the default EC2 full access that looks like :</p>
<p><code>{<br />
"Statement": [<br />
{<br />
"Action": "ec2:*",<br />
"Effect": "Allow",<br />
"Resource": "*"<br />
},<br />
{<br />
"Effect": "Allow",<br />
"Action": "elasticloadbalancing:*",<br />
"Resource": "*"<br />
},<br />
{<br />
"Effect": "Allow",<br />
"Action": "cloudwatch:*",<br />
"Resource": "*"<br />
},<br />
{<br />
"Effect": "Allow",<br />
"Action": "autoscaling:*",<br />
"Resource": "*"<br />
}<br />
]<br />
}</code></p>
<p>2. Once the group is defined next step is to add users to this group.  Once the user name is defined a Access Key Id and Secret Access Key will be generated. Also here you need to define a password for the newly created account.</p>
<p>3. Final step is to test this by accessing a URL like : https://xxxxxxxxx.signin.aws.amazon.com/console where xxxxxxxxx AWS account ID (you find that in your &#8220;Security credentials&#8221; page)</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/amazon-iam-identity-and-access-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Passive FTP on Amazon EC2</title>
		<link>http://www.x83.net/using-passive-ftp-on-amazon-ec2/</link>
		<comments>http://www.x83.net/using-passive-ftp-on-amazon-ec2/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 07:55:14 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[elastic]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[passive ftp]]></category>
		<category><![CDATA[proftpd]]></category>
		<category><![CDATA[security group]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=658</guid>
		<description><![CDATA[Installing proftpd on an amazon ec2 instance is not rocket since, but after installing you need to configure it to work correct.Because amazon ec2 instances use an internal IP address as their ethernet interface address, proftpd needs to be configured for passive FTP. First, you need to apply for an Elastic IP address which you [...]]]></description>
			<content:encoded><![CDATA[<p>Installing proftpd on an amazon ec2 instance is not rocket since, but after installing you need to configure it to work correct.Because amazon ec2 instances use an internal IP address as their ethernet interface address, proftpd needs to be configured for passive FTP.</p>
<p>First, you need to apply for an Elastic IP address which you will allocate to your instance. This will be the IP address that will be show to the world.</p>
<p>Second step is to configure the firewall properly for that instance. Go to the “Security group” assigned to the instance and add the following rules:</p>
<p>* Connection Method: Custom<br />
* Protocol: TCP<br />
* From Port: 20<br />
* To Port: 21<br />
* Source (IP or group): 0.0.0.0/0 (that is, if you want to permit to the whole internet to access your ftp server; if not, replace this with the IP address or class that you want to give access to your ftp server)</p>
<p>We need to add another rule for the passive ports that will be used by proftpd:</p>
<p>* Connection Method: Custom<br />
* Protocol: TCP<br />
* From Port: 49152<br />
* To Port: 65535<br />
* Source (IP or group): 0.0.0.0/0</p>
<p>Now, go to your machine end edit /etc/proftpd/proftpd.conf and add the following lines:</p>
<p>PassivePorts 49152 65535</p>
<p>MasqueradeAddress  your_elastic_ip_address</p>
<p>Restart proftpd and enjoy:</p>
<p>/etc/init.d/proftpd restart</p>
<p>For Vsftpd configuration is slightly different. You need to edit vsftpd.conf and make sure that you add these lines:</p>
<p>pasv_min_port=1024<br />
pasv_max_port=1080<br />
pasv_address=elastic IP</p>
<p>Range 1024-1080 or whatever other range needs to be added in the Security group, same way we did for Proftpd. Then run: /etc/init.d/vsftpd restart</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/using-passive-ftp-on-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Client.InvalidKeyPair.NotFound</title>
		<link>http://www.x83.net/getting-client-invalidkeypair-notfound/</link>
		<comments>http://www.x83.net/getting-client-invalidkeypair-notfound/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 21:41:32 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Amazon]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[ec2-describe-keypairs]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=652</guid>
		<description><![CDATA[When running the running ec2-run-instances command, I received the following error: Client.InvalidKeyPair.NotFound: The key pair &#8216;.ssh/campusfork&#8217; does not exist Seems that the EC2_KEYPAIR_NAME system variable was set incorrectly. You can find the correct value using the ec2-describe-keypairs command. Here is an example of its use: [amazon@shifu ~]$ ec2-describe-keypairs KEYPAIR cf-host01-keypair01 34:ce:19:bb:48:d9:3a:6f:36:c1:04:f8:ae:d6:97:ba:ae:1f:81:a2 KEYPAIR campusfork 5f:ca:32:07:07:f3:15:ef:f9:a0:0c:64:b4:30:a2:be:67:a1:8a:75 So [...]]]></description>
			<content:encoded><![CDATA[<p>When running the running ec2-run-instances command, I received the following error:</p>
<p>Client.InvalidKeyPair.NotFound: The key pair &#8216;.ssh/campusfork&#8217; does not exist</p>
<p>Seems that the EC2_KEYPAIR_NAME system variable was set incorrectly. You can find the correct value using the ec2-describe-keypairs command. Here is an example of its use:</p>
<p>[amazon@shifu ~]$ ec2-describe-keypairs<br />
KEYPAIR cf-host01-keypair01     34:ce:19:bb:48:d9:3a:6f:36:c1:04:f8:ae:d6:97:ba:ae:1f:81:a2<br />
KEYPAIR campusfork      5f:ca:32:07:07:f3:15:ef:f9:a0:0c:64:b4:30:a2:be:67:a1:8a:75</p>
<p>So the correct value is campusfork not the filename.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/getting-client-invalidkeypair-notfound/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Service error: The AWS Access Key Id needs a subscription for the service&#8221;</title>
		<link>http://www.x83.net/service-error-the-aws-access-key-id-needs-a-subscription-for-the-service/</link>
		<comments>http://www.x83.net/service-error-the-aws-access-key-id-needs-a-subscription-for-the-service/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 21:17:25 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[id]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=649</guid>
		<description><![CDATA[While trying to create a RDS security group that error appears. Seems like you need to go on http://aws.amazon.com then go to the Console management and Sign Up for using RDS.]]></description>
			<content:encoded><![CDATA[<p>While trying to create a RDS security group that error appears. Seems like you need to go on http://aws.amazon.com then go to the Console management and Sign Up for using RDS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/service-error-the-aws-access-key-id-needs-a-subscription-for-the-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clone an EC2 instance</title>
		<link>http://www.x83.net/clone-an-ec2-instance/</link>
		<comments>http://www.x83.net/clone-an-ec2-instance/#comments</comments>
		<pubDate>Tue, 25 May 2010 18:04:18 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[s3]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=426</guid>
		<description><![CDATA[These days Amazon sent me an email saying that the a instance that I&#8217;m using is on a server that is failing. To clone I had to: 1. Install ec2-api-tools from http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip on the failing instance 2. Install Java from http://javadl.sun.com/webapps/download/AutoDL?BundleId=39484 (I&#8217;m using a small instance) 3. Set .bashrc as follows: export EC2_HOME=~/ec2 export PATH=$PATH:$EC2_HOME/bin [...]]]></description>
			<content:encoded><![CDATA[<p>These days Amazon sent me an email saying that the a instance that I&#8217;m using is on a server that is<br />
failing. To clone I had to:</p>
<p>1. Install ec2-api-tools from http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip on the failing instance<br />
2. Install Java from http://javadl.sun.com/webapps/download/AutoDL?BundleId=39484 (I&#8217;m using a small instance)<br />
3. Set .bashrc as follows:</p>
<blockquote><p>export EC2_HOME=~/ec2<br />
export PATH=$PATH:$EC2_HOME/bin<br />
export EC2_PRIVATE_KEY=$EC2_HOME/pk.pem<br />
export EC2_CERT=$EC2_HOME/cert.pem<br />
export JAVA_HOME=/usr
</p></blockquote>
<p>Run : </p>
<blockquote><p>source /root/.bashrc</p></blockquote>
<p>4. Create a directory for the bundled files (/mnt/myimage in my case)<br />
5. Bundle the actual instance using:</p>
<blockquote><p>ec2-bundle-vol &#8211;cert ec2/cert.pem &#8211;privatekey ec2/pk.pem -s 2048 -u Your_AWS_Account_ID -d /mnt/myimage/
</p></blockquote>
<p>-u : AWS Account ID is taken from AWS page Security Credentials, e.g: 1234-5678-9012-3456. Make sure to skip the &#8220;-&#8221; when using it.<br />
-s : size of the image<br />
-d : directory from step 4</p>
<p>6. Upload the files to a S3 account using:</p>
<blockquote><p>ec2-upload-bundle -a access_key -s secret_key -b bucket_name  &#8211;manifest /mnt/myimage/image.manifest.xml</p></blockquote>
<p>-a : access_key from Security Credentials page<br />
-s : secret_key from Security Credentials page<br />
-b : bucket name<br />
&#8211;manifest : name of the manifest file</p>
<p>7. Register the AMI by going to your AWS EC2 console->AMI->Images->Register new AMI and enter:<br />
bucket_name/image.manifest.xml<br />
8. Create a new EC2 instance by using the newly registered AMI</p>
<p>Note that you will need the [pk,cert].pem files too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/clone-an-ec2-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

