Monday, 28 July 2014

Deploying Web-app to AWS through Eclipse

Hello guys,in this post i am gonna tell you how to deploy your project to AWS elastic beanstalk using STS.

Step1-I'll assume that you already integrate aws tools into your STS,if not then first read my previous blog.

Step2 -Select any project in project explorer which you want to deploy on AWS elastic beanstalk.Right click on the project,goto amazon web services->deploy to elastic beanstalk.

Step3 -Then select Manually define Server and from the list you have to select Amazon Services from which select Tomcat server for Deploying Java Application.
It will take few seconds to make connection with your AWS account.If gets error then make sure you have properly configure your aws credentials into your STS.

Step4 -Then you have to give Application Name and Enviroment Name (in which your application is deployed)

Step5 -Select the Key Pair name from existing key pair available.This step is optional,you can deploy application without key pair but not recommended.Key pair is somewhat related to security purpose.

Step6- Click the finish button to complete the process.This will take few minutes to deploy your application successfully.

Tuesday, 10 June 2014

Integrating AWS tools in Eclipse or STS

Here are the following steps for integrating AWS tools into Eclipse or STS.

STEP1-  open your eclipse ide and goto the marketplace in eclipse
              goto   help->eclipse marketplace & search aws tools and finally install it.
              This will take some minutes.

STEP2-  After installation is complete aws explorer will be shown in your eclipse and for the very first time it                will ask your SECRET ACCESS KEY & ACCESS KEY ID.

STEP3-  Then goto aws.amazon.com & sign in your aws account.Goto IAM services and make a new user,set permissions to this user and finally generate SECRET  ACCESS KEY & ACCESS KEY ID.The SECRET Key will be generated only once, so keep it in a safe place for future use.Finally make entry into Eclipse for these keys.

STEP4- Note that after configure your aws account in Eclipse,aws tools will save the credentials into your System @  C:\Users\Administrator\.aws\credentials and remeber that credentials location is fixed. Do not change this location.

STEP5- Finally your Eclipse is ready with AWS tools. AWS tools provide a lot of options in your Eclipse.Explore your IDE for more options.

Note-Please give user permissions in your AWS  IAM  user account,without permissions you will not be able to connect your Eclipse to AWS account.


Now start creating your web project and start deploying those projects directly from your IDE i.e Eclipse to AWS clouds.

How to deploy your web project from Eclipse will be in Next post.