<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0' gd:etag='W/&quot;C0YDRnk7cCp7ImA9WhJTEUU.&quot;'><id>tag:blogger.com,1999:blog-6102651968911164379</id><updated>2012-06-20T01:32:57.708-07:00</updated><title>Amazon Services</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://amazon-manoj.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6102651968911164379/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://amazon-manoj.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Manoj Kumar</name><uri>https://profiles.google.com/113701026524170699917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;C0YDRnk_fip7ImA9WhJTEUU.&quot;'><id>tag:blogger.com,1999:blog-6102651968911164379.post-749374484369593336</id><published>2012-06-20T01:32:00.003-07:00</published><updated>2012-06-20T01:32:57.746-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-06-20T01:32:57.746-07:00</app:edited><title>Creating An Amazon EC2 From A Running Instance</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Follow below given link, its very good article:&lt;/span&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;a href="http://webkist.wordpress.com/2010/03/16/creating-an-amazon-ec2-ebs-ami-from-a-running-instance/" style="color: #771100; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px; text-decoration: none;"&gt;http://webkist.wordpress.com/2010/03/16/creating-an-amazon-ec2-ebs-ami-from-a-running-instance/&lt;/a&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Otherwise after completion of Step 2 in above link follow below steps:&lt;/span&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;1) Go to&amp;nbsp;&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Amazon Management Console&lt;/b&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;2) Go to&amp;nbsp;&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;EC2 Dashboard&lt;/b&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;3) Go to&amp;nbsp;&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Volumes&amp;nbsp;&lt;/b&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Panel (which is in left side)&lt;/span&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;4) Right Click on the&amp;nbsp;&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Volume&lt;/b&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;&amp;nbsp;where image has been copied&lt;/span&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;5) Click on "&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Create Snapshot&lt;/b&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;"&lt;/span&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;6) Click on&amp;nbsp;&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Snapshot&amp;nbsp;&lt;/b&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Panel ( which is in left side and after Volume Panel)&lt;/span&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;7) Select&amp;nbsp;&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Snapshot&lt;/b&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;&amp;nbsp;which is just created and then Click on the "&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;&lt;u&gt;Create Image&lt;/u&gt;&lt;/b&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;" button just above the list of&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Snapshots&lt;/b&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;8) This will ask for&amp;nbsp;&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;RAM Disk&lt;/b&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Kernel ID&lt;/b&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;&amp;nbsp;(copy from the&amp;nbsp;&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Actual image&lt;/b&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;&amp;nbsp;description)&lt;/span&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;9) Click on "C&lt;/span&gt;&lt;b style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;reate Image"&lt;/b&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;br style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;" /&gt;&lt;span style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;"&gt;Thats it!!!&lt;/span&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6102651968911164379-749374484369593336?l=amazon-manoj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amazon-manoj.blogspot.com/feeds/749374484369593336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amazon-manoj.blogspot.com/2012/06/creating-amazon-ec2-from-running.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6102651968911164379/posts/default/749374484369593336?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6102651968911164379/posts/default/749374484369593336?v=2'/><link rel='alternate' type='text/html' href='http://amazon-manoj.blogspot.com/2012/06/creating-amazon-ec2-from-running.html' title='Creating An Amazon EC2 From A Running Instance'/><author><name>Manoj Kumar</name><uri>https://profiles.google.com/113701026524170699917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;Ck8BSXwyfSp7ImA9WxBQFUo.&quot;'><id>tag:blogger.com,1999:blog-6102651968911164379.post-2864089967635559848</id><published>2010-01-07T02:49:00.001-08:00</published><updated>2010-01-15T07:54:18.295-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-01-15T07:54:18.295-08:00</app:edited><title>Amazon RDS</title><content type='html'>&lt;marquee&gt;CLOUD COMPUTING: AMAZON RDS&lt;/marquee&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Amazon Relational Database Service (Amazon RDS) is a web service that makes it easy to set up, operate, and scale a relational database in the cloud. &lt;br /&gt;
&lt;br /&gt;
We do not need to install and configure MySQL over the server/hardware which is a time consuming process, so Amazon provides RDS Service which is pre-installed and optimized MySQL Database Service. RDS Service provide a Administrator level user to you so that user can do Database administrative work like assigning/revoking privileges, changing global variables, changing database engine etc..&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Silent features:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Replication&lt;/b&gt;--Replication is disabled, but the master user does not have privileges to run SHOW MASTER STATUS.&lt;br /&gt;
&lt;b&gt;Scalable&lt;/b&gt;—With a simple API call you can scale the compute and storage resources available to your database to meet your business needs and application load.&lt;br /&gt;
Designed for use with other AWS products—Amazon RDS is tightly integrated with other Amazon products. For example, applications running in Amazon EC2 experience low-latency database access to Amazon RDS.&lt;br /&gt;
&lt;b&gt;Backup&lt;/b&gt;—Amazon RDS Service provides backup to user as per their defined period.&lt;br /&gt;
&lt;b&gt;Recovery&lt;/b&gt;--Amazon docs state that database can be recovered up to the last 5 minutes. That means amazon is taking backup after every 5 minutes somewhere on cloud.&lt;br /&gt;
&lt;b&gt;Security&lt;/b&gt;--Assign/revoke permission from security group.&lt;br /&gt;
&lt;b&gt;Start/Stop&lt;/b&gt;--Reboot RDS instance.&lt;br /&gt;
&lt;b&gt;Inexpensive&lt;/b&gt;—You pay a low rate for the resources you actually consume.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For using Amazon RDS we must have API Tools. Here are the commands to start and manage RDS:&lt;br /&gt;
&lt;br /&gt;
We need to export some variables for using API Tools such as:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;export JAVA_HOME=/opt/java&lt;br /&gt;
export AWS_RDS_HOME=/path/to/amazon_rds/api&lt;br /&gt;
export PATH=$PATH: $AWS_RDS_HOME/bin:$JAVA_HOME/bin&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;blockquote&gt;CREATING INSTANCE USING RDS API's&lt;/blockquote&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1)  How To create a RDS with storage 15GB and extra large database instance?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
rds-create-db-instance --engine MySQL5.1 --master-username root --master-user-password mpass --db-name tekritidb --db-instance-identifier tekriti_instance --allocated-storage 15 --db-instance-class db.m1.xlarge --header -K /private/key/path -S /secret/key/path&lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
&lt;br /&gt;
DBINSTANCE DBInstanceId       Class        Engine   Storage  MasterUsername  Status    Backup Retention&lt;br /&gt;
DBINSTANCE  tekriti_instance  db.m1.xlarge  mysql5.1   5        root     creating  1&lt;br /&gt;
&lt;br /&gt;
SECGROUP  Name     Status&lt;br /&gt;
SECGROUP  default  active&lt;br /&gt;
PARAMGRP  Group Name        Apply Status&lt;br /&gt;
PARAMGRP  default.mysql5.1  in-sync&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: Instead of defining access and secret keys with command every time, we can also define in file ${AWS_RDS_HOME}/credential-file-path.template.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2)  How to check/describe running RDS instances?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
rds-describe-db-instances -K /private/key/path -S /secret/key/path&lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
&lt;br /&gt;
DBINSTANCE  tekriti_instance  2009-12-08T06:34:52.571Z  db.m1.xlarge  mysql5.1&lt;br /&gt;
5   root  available  tekriti_instance.clc2ed76md1v.us-east-1.rds.amazonaws.com 3306  us-east-1d  1&lt;br /&gt;
SECGROUP  default  active&lt;br /&gt;
PARAMGRP  default.mysql5.1  in-sync&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;AUTHORIZE NETWORK ACCESS TO RDS INSTANCE&lt;/b&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;3)  Authorizing network access to RDS instance:&lt;br /&gt;
&lt;br /&gt;
i) How to Grant access to 192.168.0.0/24 network&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
rds-authorize-db-security-group-ingress default --cidr-ip 192.168.0.0/24 --headers&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
ii) How to Check the state of authorization&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
rds-describe-db-security-groups default --headers&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;iii) How to Grant access to the existing EC2 Security Group&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
rds-authorize-db-security-group-ingress default --ec2-security-group-name myec2group --ec2-security-group-owner-id 987654321021&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--ec2-security-group-owner-id = AWS account number of the security group.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;blockquote&gt;CONNECT TO RDS INSTANCE DB&lt;/blockquote&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4)  How to Connect RDS instance from EC2 instance &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Log in over your EC2 server and run following command to access your MySQL RDS instance:&lt;br /&gt;
&lt;br /&gt;
mysql -u root -p mpass -h  tekriti_instance.clc2ed76md1v.us-east-1.rds.amazonaws.com&lt;br /&gt;
&lt;br /&gt;
mysql&gt;&lt;br /&gt;
&lt;br /&gt;
This will drop you on RDS instance MYSQL prompt, that means you are connected to RDS instance MYSQL.&lt;br /&gt;
&lt;br /&gt;
Now you can run your application on EC2 server with database on RDS.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Missing features:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Remote Connectivity&lt;/b&gt;-- I did not see an option to enable SSH connections to MySQL. I think that is required for this to be a good way to run MySQL.&lt;br /&gt;
&lt;b&gt;Replication/NDB Cluster&lt;/b&gt;--  Replication and NDB Cluster is not available in RDS.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6102651968911164379-2864089967635559848?l=amazon-manoj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amazon-manoj.blogspot.com/feeds/2864089967635559848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amazon-manoj.blogspot.com/2010/01/amazon-rds.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6102651968911164379/posts/default/2864089967635559848?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6102651968911164379/posts/default/2864089967635559848?v=2'/><link rel='alternate' type='text/html' href='http://amazon-manoj.blogspot.com/2010/01/amazon-rds.html' title='Amazon RDS'/><author><name>Manoj Kumar</name><uri>https://profiles.google.com/113701026524170699917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;D0ACRH0-eCp7ImA9WxNWGU4.&quot;'><id>tag:blogger.com,1999:blog-6102651968911164379.post-8153730050802565423</id><published>2009-10-18T23:22:00.000-07:00</published><updated>2009-10-19T00:02:45.350-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-10-19T00:02:45.350-07:00</app:edited><title>HOW TO SETUP AMAZON LOAD BALANCER AND AUTO SCALING</title><content type='html'>&lt;span style="font-weight:bold;"&gt;How to setup Load Balancer for Amazon EC2 instaces/Applications?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;First of all we must have Elastic Load Balancer API Tools.&lt;br /&gt;&lt;br /&gt;Download &lt;span style="font-weight:bold;"&gt;Elastic Load Balancer API Tools&lt;/span&gt; and unzip into a folder suppose /Backup/elb.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Export variable &lt;span style="font-weight:bold;"&gt;AWS_ELB_HOME='/Backup/elb'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Elb-create-lb – This is the first command to create Load Balancer.&lt;br /&gt;&lt;br /&gt;Go to Directory &lt;span style="font-weight:bold;"&gt;/Backup/elb/bin&lt;/span&gt; and run following command:&lt;br /&gt;&lt;br /&gt;./elb-create-lb  LBName --ec2-cert-file-path Certificate-file-path --ec2-private-key-file-path privatekey-file-path --availability-zones us-east-1c --listener "protocol=http, lb-port=80, instance-port=80"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This command will give you Load Balancers Public DNS Name.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Next is to register this Load Balancer &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;./elb-register-instances-with-lb LBName --ec2-cert-file-path Certificate-file-path - -ec2-private-key-file-path privatekey-file-path  --instances  InstanceID1,InstanceID2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This will show you results like&lt;br /&gt;&lt;br /&gt;Instance : InstanceID1&lt;br /&gt;Instance : InstanceID2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Now Setup Auto Scaling&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For setting up Auto Scaling using Command Line we must have AutoScaling API Tools.&lt;br /&gt;&lt;br /&gt;Download  &lt;span style="font-weight:bold;"&gt;AutoScaling API Tools&lt;/span&gt; and unzip into a folder suppose &lt;span style="font-weight:bold;"&gt;/Backup/amazon/als&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Export  variable &lt;span style="font-weight:bold;"&gt;AWS_AUTO_SCALING_HOME='/Backup/amazon/als'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Go to Directory /Backup/amazon/als/bin&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;First we need to define / create configuration for AutoScalingGroup &lt;/span&gt;&lt;br /&gt;&lt;br /&gt; ./as-create-launch-config  --launch-config ASLaunchConfigurationName  - -ec2-cert-file-path /path/to/certificate/file - -ec2-private-key-file-path /path/to/private/key/file - -image-id ami-ID - -instance-type m1.small&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OK-Created launch config&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Now show installed or created configurations&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; ./as-describe-launch-configs - -ec2-cert-file-path--ec2-cert-file-path /path/to/certificate/file - -ec2-private-key-file-path /path/to/private/key/file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Will display like ::&lt;br /&gt;&lt;br /&gt;LAUNCH-CONFIG  FirstAS  ami-3b53b452  m1.small&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Now time to create AutoScalingGroup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;./as-create-auto-scaling-group &lt;span style="font-weight:bold;"&gt;AutoScalingGroupName&lt;/span&gt; - -ec2-cert-file-path /path/to/certificate/file - -ec2-private-key-file-path /path/to/private/key/file  --launch-configuration ASLaunchConfigurationName --availability-zones us-east-1a - -min-size 2 - -max-size 4 --load-balancers LBName&lt;br /&gt;&lt;br /&gt;OK-Created AutoScalingGroup&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Now create or setup trigger to customize parameters of AutoScalingGroup for creation and termination of any Instance using following command:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;CreateOrUpdateScaling&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6102651968911164379-8153730050802565423?l=amazon-manoj.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://amazon-manoj.blogspot.com/feeds/8153730050802565423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://amazon-manoj.blogspot.com/2009/10/how-to-setup-amazon-load-balancer-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6102651968911164379/posts/default/8153730050802565423?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6102651968911164379/posts/default/8153730050802565423?v=2'/><link rel='alternate' type='text/html' href='http://amazon-manoj.blogspot.com/2009/10/how-to-setup-amazon-load-balancer-and.html' title='HOW TO SETUP AMAZON LOAD BALANCER AND AUTO SCALING'/><author><name>Manoj Kumar</name><uri>https://profiles.google.com/113701026524170699917</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>