NetBeans 7.2 introduces support for Amazon Elastic Beanstalk Service (EBS). Provide the IDE with your Amazon Web Services authentication details, and you can deploy web applications directly to the Amazon Cloud. NetBeans IDE automatically mounts existing EBS environments. You can create a new EBS environment when you deploy a web application to EBS.
Registering Elastic Beanstalk Service in NetBeans IDE
Register Elastic Beanstalk Service in the IDE's Services window as a Cloud provider.
- Open the IDE's Services window. (Window > Services or Ctrl-5)
- Right-click the Cloud node and select Add Cloud. The Add Cloud Provider dialog opens.
- Select Amazon Beanstalk as the Cloud Provider. Enter an arbitrary name for the provider. Click Next.
- Enter your key and secret key. Click Next.
- Click through the rest of the wizard. NetBeans IDE mounts your existing Amazon Beanstalk Tomcat environments as running Tomcat servers.
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.
- In the Server and Settings page of the New Web Application wizard, click Add Server. The Add Server Instance dialog opens.
- Select Amazon Beanstalk as the server type. The Create New Virtual Application or Environment window page opens.
- Select the Amazon Beanstalk account you want to use. Give the new environment an arbitrary name and select a Tomcat container type.
The IDE creates a new environment on Amazon Beanstalk:
Press F6 on your project to build it, deploy it and open it in browser: