SB2: Deploy App (Single)

Task: Deploy Application (Single)

Create a new S3 Bucket through Cloud Foundry.

Locate the s3 service in Service Marketplace

Node

Select *+New Instance**

Node

Leave as default and choose mys3 as Instance Name during final step, press confirm.

Node

The bucket is now being created through AWS CloudFormation

Node

The status can also be checked from the service cockpit. When successful it will look as follows:

Node

We can now go ahead and bind an application.

In your IDE, go and modify the manifest.yml and add the respective Instance Name mys3

...
  services:
    - mys3
#  - my-application-logs
#  - my-xsuaa
#  - my-destination
#  - my-connectivity

Login to cf (make sure to select the correct endpoint)

$ cf login

Deploy to cf and note down the URL

$ cf push

Node

Test the application by uploading a arbitary file to the respective S3 bucket and launch the target URL in your browser.

Node

The suffix /hello should generate the following similar output:

Node

In case of troubleshooting, check the logs

$ cf logs <appname> --recent

Undeploy as follows

$ cf delete <userID>-mta-cf-sample