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:)

No comments:

Post a Comment