Friday 13 July 2012

Register Elastic Beanstalk Service in NetBeans

 

Registering Elastic Beanstalk Service in NetBeans IDE

Register Elastic Beanstalk Service in the IDE's Services window as a Cloud provider.
  1. Open the IDE's Services window. (Window > Services or Ctrl-5)
  2. Right-click the Cloud node and select Add Cloud. The Add Cloud Provider dialog opens.
    Image: Provider.png
  3. Select Amazon Beanstalk as the Cloud Provider. Enter an arbitrary name for the provider. Click Next.
  4. Enter your key and secret key. Click Next.
    Image:Register.png
  5. Click through the rest of the wizard. NetBeans IDE mounts your existing Amazon Beanstalk Tomcat environments as running Tomcat servers. 
    Image:Servers.png
You can deploy Tomcat-compliant web applications to existing EBS environments as you would deploy an application to any server. For a new web application, select one of the EBS servers when you create the application. For an existing web application, open the project's Run properties and select one of the EBS servers.

Creating a New Elastic Beanstalk Environment

You can create a new Elastic Beanstalk environment when you create a web application.
  1. In the Server and Settings page of the New Web Application wizard, click Add Server. The Add Server Instance dialog opens.
  2. Select Amazon Beanstalk as the server type. The Create New Virtual Application or Environment window page opens.
  3. Select the Amazon Beanstalk account you want to use. Give the new environment an arbitrary name and select a Tomcat container type.
    Image:Addserver.png

The IDE creates a new environment on Amazon Beanstalk:
Image:Instance.png
Press F6 on your project to build it, deploy it and open it in browser:
Image:Deploy.png

No comments: