Create a new S3 Bucket through Cloud Foundry.
Locate the s3 service in Service Marketplace
Select *+New Instance**
Leave as default and choose mys3 as Instance Name during final step, press confirm.
The bucket is now being created through AWS CloudFormation
The status can also be checked from the service cockpit. When successful it will look as follows:
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
Test the application by uploading a arbitary file to the respective S3 bucket and launch the target URL in your browser.
The suffix /hello should generate the following similar output:
In case of troubleshooting, check the logs
$ cf logs <appname> --recent
Undeploy as follows
$ cf delete <userID>-mta-cf-sample