Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Setting up a one-click Amazon Elastic Beanstalk environment is faster and simpler than setting up a custom Linux EC2 environment, and automatically provides you with capacity provisioning, load balancing, auto-scaling, and application health monitoring.

Step 1: Set up an account: http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide

A few things that the Amazon Getting Started Guide leaves out include:

  • You must sign up for EC2 and Beanstalk specifically. This isn't a standard part of signing up for an Amazon Web Services (AWS) account. Logging into the AWS console and selecting the EC2 tab and Beanstalk tab will provide links to the sign-up pages.
  • You must provide a payment method the first time you sign up for a service.
  • You must provide a phone number, receive a phone call, and enter the PIN provided in the console into the phone to finalize the subscription to your first service.
  • There may be a short delay between finalizing your subscription and it being ready for use. Amazon sends an email when the account is available.

Step 2: Set up Eclipse JEE version for local testing.

To test on your local machine as you develop your application using Jetty:

  1. Create or import a project.
  2. Select the project in the Project Explorer.
  3. Click Run > Run As > Run on Server.
  4. Select Basic > J2EE Preview.
  5. Click Finish.

Step 3: Set up Eclipse JEE version for one-click EC2 deployment.

To upload and deploy your application on EC2:

  1. Install the AWS EC2 Eclipse plug-in: http://aws.amazon.com/eclipse/#4
  2. If you have not already, register your AWS account for AWS Elastic Beanstalk (see http://aws.amazon.com/elasticbeanstalk/#pricing for how using beanstalk will affect your costs)
  3. Define a new AWS Elastic Beanstalk web application (see the "Hello World" section in http://blog.teamextension.com/getting-started-with-aws-elastic-beanstalk-179)

Note: Stopping an EC2 instance created by Elastic Beanstalk will cause a new EC2 instance to be started; you must stop the Beanstalk application from the Servers tab.

  • No labels