AWS EC2 Cloud Computing Amazon Web Services
These are some of the hot new trends, and never mind the leader Node.js
So this is my experince on how I installed, Cyclos, a Bank Management System onto the Amazon Web Services.
Before starting let me say something about Cloud Computing.
Cloud Computing:
I define it is as infinite, imagine you need a resource, how much do you need ?
do you know in advance ?
can you estimate it ?
what if you need more than what you estimated ?
what if you used less than what you estimated ? Are the excess resources go waste ?
Instead of buying your own resource, go and buy resource from existing cloud resource providers like Amazon Web Services
Then you can scale your resources as needed.
Need more resources just create new instances.
Need to cut down resources then just terminate instances.
Amazon is leader in provinding Cloud Services. Most popular of them is EC2 - Elastic Compute Cloud and S3.
EC2 instance.
These are just like separate computers. You can create any number of instance as per your need. Each instance has a configuration like RAM, HD, type of operating system.We can acces each instance by sshing (telneting ) into them and install our own software, packages, setup the system.AmazonEC2 Provides readymade linux images that can directly copied and the os can be started. One of the
First I registered an account with AWS. AWS provides free tier for a period of 12 Months, that we can use it. There are so many services that are provided by Amazon, The service that I have used is EC2
Creating an EC2 instance is all that easy. Go to the Management Console.and select launch instance. First you need to select AMI and if you need a 32-bit or a 64-bit instance. I have chsoen a 64-bit instance with Amazon linux in it. It is a pretty good linux, with latest up to date repos. Then the specifications of the instance. There are various configurations catering to different needs. Since this being an initial deployment, I have chosen a Micro Instance that comes under Free Usage Tier. Then you need to create a Key Pair to be able to access the instance. Specify a name and the wizard creates Key. Secure it in some place, because this key file acts as a password when connecting with the instance. Then you need to create a Security Policy specifying the inbound access to the instance. Since we are creating a Tomcat Server, we need ports 8080 open or HTTP Port 80 Open. For testing sake I have opened both the ports open by specifying allow access to 0.0.0.0/0.
To check if the Security policy has been implemented you need the global url which is of form
instance-id.region.compute.amazonaws.com
ec2-xx-xxx-xx-xx.us-west-2.compute.amazonaws.com
To check if the ports are open, you can use ping.eu and port check tool.
Once the instance is up and running, and accessible, we need to install the required software in the instance. All the instance have high speed internet not to worry about that. The AMI Package Manager was very awesome. All we need to do to install MySQL, Tomcat6 was use YUM Commands.
We needed a Mysql Server 5.5 or greater. Just installed MySql using the command
yum install mysql-server
and RPM took care of all the dependencies, and installed it all neat and made it ready. I had to start the service using simple unix command
sudo service mysqld start
Followed the manual http://www.cyclos.org/wiki/index.php and made basic sql configurations.
The AMI was preloaded with Java, so all that I needed to install was tomcat6. Again using YUM
sudo yum install tomcat6
Started the Server using
sudo service tomcat6 start
So Now I need to test the server, but there was no preloaded tomcat manager or any sample apps deployed in tomcat to test them. So I found and downloaded a sample application to test your tomcat server, that is available at
http://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/
The tomcat server was running on port 8080, so to access that url, we need to use
http//url:8080/
That was done, the server up and running.
Then download the cyclos onto the instance. You can use curl to download files.
curl url > filename.
Unzip the contents of the file, copy the web folder into tomcat6 webapps at
/usr/share/tomcat6/webapps
Then follow the manual and edit the cyclos.properties, enter the username and password for the cyclos to access the database.
Tada Done. Now you can access the instanc at the url/cyclos. The Application is up and running.
Deoploying application onto cloud was an awesome experience, and Amazon made it much user. It has some awesome user guid, and getting started guide.
These are some of the hot new trends, and never mind the leader Node.js
So this is my experince on how I installed, Cyclos, a Bank Management System onto the Amazon Web Services.
Before starting let me say something about Cloud Computing.
Saala har koi aaj kal use kar raha
WE ARE NOW ON CLOUD
Cloud Computing:
I define it is as infinite, imagine you need a resource, how much do you need ?
do you know in advance ?
can you estimate it ?
what if you need more than what you estimated ?
what if you used less than what you estimated ? Are the excess resources go waste ?
Instead of buying your own resource, go and buy resource from existing cloud resource providers like Amazon Web Services
Then you can scale your resources as needed.
Need more resources just create new instances.
Need to cut down resources then just terminate instances.
Amazon is leader in provinding Cloud Services. Most popular of them is EC2 - Elastic Compute Cloud and S3.
EC2 instance.
These are just like separate computers. You can create any number of instance as per your need. Each instance has a configuration like RAM, HD, type of operating system.We can acces each instance by sshing (telneting ) into them and install our own software, packages, setup the system.AmazonEC2 Provides readymade linux images that can directly copied and the os can be started. One of the
First I registered an account with AWS. AWS provides free tier for a period of 12 Months, that we can use it. There are so many services that are provided by Amazon, The service that I have used is EC2
Creating an EC2 instance is all that easy. Go to the Management Console.and select launch instance. First you need to select AMI and if you need a 32-bit or a 64-bit instance. I have chsoen a 64-bit instance with Amazon linux in it. It is a pretty good linux, with latest up to date repos. Then the specifications of the instance. There are various configurations catering to different needs. Since this being an initial deployment, I have chosen a Micro Instance that comes under Free Usage Tier. Then you need to create a Key Pair to be able to access the instance. Specify a name and the wizard creates Key. Secure it in some place, because this key file acts as a password when connecting with the instance. Then you need to create a Security Policy specifying the inbound access to the instance. Since we are creating a Tomcat Server, we need ports 8080 open or HTTP Port 80 Open. For testing sake I have opened both the ports open by specifying allow access to 0.0.0.0/0.
To check if the Security policy has been implemented you need the global url which is of form
instance-id.region.compute.amazonaws.com
ec2-xx-xxx-xx-xx.us-west-2.compute.amazonaws.com
To check if the ports are open, you can use ping.eu and port check tool.
Once the instance is up and running, and accessible, we need to install the required software in the instance. All the instance have high speed internet not to worry about that. The AMI Package Manager was very awesome. All we need to do to install MySQL, Tomcat6 was use YUM Commands.
We needed a Mysql Server 5.5 or greater. Just installed MySql using the command
yum install mysql-server
and RPM took care of all the dependencies, and installed it all neat and made it ready. I had to start the service using simple unix command
sudo service mysqld start
Followed the manual http://www.cyclos.org/wiki/index.php and made basic sql configurations.
The AMI was preloaded with Java, so all that I needed to install was tomcat6. Again using YUM
sudo yum install tomcat6
Started the Server using
sudo service tomcat6 start
So Now I need to test the server, but there was no preloaded tomcat manager or any sample apps deployed in tomcat to test them. So I found and downloaded a sample application to test your tomcat server, that is available at
http://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/
The tomcat server was running on port 8080, so to access that url, we need to use
http//url:8080/
That was done, the server up and running.
Then download the cyclos onto the instance. You can use curl to download files.
curl url > filename.
Unzip the contents of the file, copy the web folder into tomcat6 webapps at
/usr/share/tomcat6/webapps
Then follow the manual and edit the cyclos.properties, enter the username and password for the cyclos to access the database.
Tada Done. Now you can access the instanc at the url/cyclos. The Application is up and running.
Deoploying application onto cloud was an awesome experience, and Amazon made it much user. It has some awesome user guid, and getting started guide.

