jasonmimick / atlas-osb

DEPRECATED: See https://github.com/mongodb/atlas-osb

Home Page:https://github.com/mongodb/atlas-osb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy service broker into PAS

jasonmimick opened this issue · comments

Try to deploy and instance of the Atlas Service Broker to the pcf-test PCF cluster.

Document steps and create issues for any problems.

Prep for more official documentation and guidance for customers to deploy into VMware Tanzu environments.

These are draft notes - need to verify these steps.
How to deploy AOSB

Cf push

cf service-brokers
cf create-service-broker --help

cf create-service-broker mongodb-atlas nzjkbcly@5b2d0283df9db13a59085100 'a787fe68-2fd4-42fa-a3d5-72d322c77514' <http://mongodb-atlas.apps.test.pcf-test.com> 

cf service-access
cf enable-service-access
cf enable-service-access mongodb-atlas-aws

Check PCF App 

cf create-service mongodb-atlas-aws M10 Andrey_AWS_Test -c '{"cluster":  {"providerSettings":  {"regionName": "EU_CENTRAL_1"} } }'```

@jasonmimick I am not sure if I understand what's involve in the step "create-service-broker" :

cf create-service-broker mongodb-atlas nzjkbcly@5b2d0283df9db13a59085100 'a787fe68-2fd4-42fa-a3d5-72d322c77514' http://mongodb-atlas.apps.test.pcf-test.com

Does Customer need to download the "broker" first? What are these big numbers?

Hi @jeegarghodasara -
The cf push command is meant to be run from a clone of this repo. This is what would deploy an app running the broker to some known url.

The cf create-service-broker commands then registers an instance of the atlas-osb hosted at http://mongodb-atlas.apps.test.pct-test.com. This means the DNS/etc is all setup. You can theoretically host this broker anywhere at all, or use the cf push to run locally.

The "big numbers" are ONE Atlas programmatic apikey, in a special format - and these are the credentials used by the broker to create and delete Atlas clusters.

cf create-service <service_name> <public_apikey>@<atlas_project_id> <private_apikey> <atlas-osb-url>

complete - see docs