You can apply all these changes before or after the initial deployment.
WARNING: If you apply this after the initial deployment, anything in the blobstore will be LOST
- Log into
AWS management console
- Open up
S3
Create bucket
you need to create 4 buckets, and the names need to be unique.
If you DO NOT use the names listed below, make sure you update these values ins3-vars-template.yml
Make sure you pick the same region for each bucket and that this region is the same one you are deploying too.
- app-package-s3-bucket-cf
- buildpack-s3-bucket-cf
- droplet-s3-bucket-cf
- resource-s3-bucket-cf
- Do this after you create the buckets, in case you had to change a bucket name
- Create a zip file
zip -r ../cfp-s3-blobstore-extension.zip *
- Copy the zip file to the IBM Cloud Foundry installer directory
- Run, make sure you have the right path to the zip file
./cm extension -e cfp-s3-blobstore-extension register -p ./cfp-s3-blobstore-extension.zip
- Now we add the extension to our main state file:
./cm states insert -i cfp-s3-blobstore-extension
- At this point it is ready for use, run
launch_deployment.sh -c <uiconfig.file>
Note: If you have trouble loading changes to the extension with the same name, do an unregister first, then register the extension again.
./cm extension -e cfp-s3-blobstore-extension unregister