this is service broker extended from blog post for to create elastic search as a service for cloudfoundry
requirement:-
- cloudfoundry developer access to any space ( if no space is created please refer to cloudfoundry document to create space and assign application runtime to it)
- one VM access on aws
- finally some patience and will to make it work
Steps to deploy "Elastic search as a service"
-
git clone https://github.com/vishwakulkarni/Elastic-search-as-service.git
-
cd Elastic-search-as-service
-
cf push --random-route
-
cf apps
(here you will get route of your application which is deployed) example
Getting apps in org vishwa / space elk-broker as vishwa.kulkarni@gmail.com... OK
name requested state instances memory disk urls elk-broker started 1/1 512M 1G elk-broker-example.cfapps.io
curl alex:bob@$elk-broker-example.cfapps.io/v2/catalog
here alex is username and bob is password
cf create-space demo-space \
cf target -s demo-space
create your space(demo-space) and target your cf cli to that space.
cf create-service-broker elk-broker \
alex bob https://elk-broker-example.cfapps.io \
--space-scoped
cf marketplace
to check for your service live
cf update-service-broker elk-broker \
alex bob https://elk-broker-example.cfapps.io
if you want to update your service then do above command
checkout https://starkandwayne.com/blog/register-your-own-service-broker-with-any-cloud-foundry/ for more.