Wednesday, July 24, 2013

using existing AWS elastic beanstalk environment for your application

Aws provides a managed service for deploying application(elastic beanstalk), were in you just have to configure your AWS CLI so that you can use "git aws.push" command to deploy your code to elastic beanstalk environement. Incase you want to use and already setup elastic beanstalk environment you need to follow below steps:-
go into your code source folder
run below commands

 >git init 
   (replace "/home/elasticbeanstalk-cli" path with your machine elasticbeanstalk-cli folder path)

 >sh /home/elasticbeanstalk-cli/AWSDevTools/Linux/AWSDevTools-RepositorySetup.sh

 >git aws.config 
   (This will prompt you to enter the AWS access key, secret Key, and details of the application you’ve just launched from the console)

 that's it now you can do "eb status" and check your elasticbeanstalk configuration are correct or not. "eb status" shows you details about elastic beanstalk environemnt (application name,environment) now you can just use

 >git aws.push 
 to push your code to elasticbeanstalk environment.

Happy Coding:)

Sunday, June 2, 2013

AWS Cloud Computing made easy

            "cloud computing" when i heard these word for first time i thought these is not my cup of tea. i would require lot of experience to get hand on it but now after 2month since our company started using amazon web service(AWS) for deploying ruby on rails projects on cloud it has become easy, the most interesting part i have configured local phpmyadmin to access AWS RDS instance which is a database instance you can think as if a small process running only for database request processing aws itself only give's you normal mysql prompt through which you can fire mysql query i dont know whether amazon know's about it or not instead of using mysql prompt why can't we can use phpmyadmin which is just a php script used for handling mysql databases and getting rid of SQL query's it's really very help full at least for people like me who don't believe in remembering just syntax these was about database.
    now the thing remain is files for which i have configure filezilla to EC2 instance which is a cloud machine which can be start,stop,reboot everything that you can do on your local machine can be done on cloud machine these allows me to control my cloud web application on my local machine which is being running on a cloud machine