CL5: App using AWS Cloud9

Create a new AWS Cloud9 environment to be used as IDE

➡️ Setup a new AWS Cloud9 environment, as shown below.

➡️ Make sure to use Ubuntu as underlying OS.

Amazon Linux also works, but requires you to switch from Amazon Corretto to OpenJDK before continuing with the lab.


(Optional) Build locally

Requires existing application, see here.

$ mvn package

(Optional) Test locally

Option A) Start application via mvn

See SAP documentation to learn more

$ mvn tomee:run -pl application

Option B) Start application via cf local (cf plugin)

See also []()

Install CF for Cloud9 (


$ wget -q -O - | sudo apt-key add -
$ echo "deb stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
$ sudo apt-get update
$ sudo apt-get install cf-cli

Amazon Linux

$ sudo wget -O /etc/yum.repos.d/cloudfoundry-cli.repo
$ sudo yum install cf-cli

Install cf local Plugin

$ cf install-plugin cflocal -r CF-Community

Create local.yml file (copy from manifest.yml, replace “sap-java-buildpack” by “java_buildpack”)

$ cf local stage <artifactId> -p "application/target/<artifactId>-application.war"
$ cf local run <artifactId> -p 8080

Live Preview


$ curl http://localhost:8080/hello
$ curl http://localhost:8080/index.html



Only works in Chrome or Firefox!




To troubleshooting Cloud9 preview see the AWS Cloud9 documentation