I previously showed how to create a connection in IntelliJ IDEA to Cloud Foundry v2 in the post below.
With a Cloud Foundry CLOUD connection we can now PUSH our application directly from the IDE as shown below.
1. Create a run configuration for your project as shown below. We also specify the memory and number of instances on this page as part of the push / deployment process.
3. View the deployed application on AWS hosted instance of Cloud Foundry