Creating a Platform Service Instance
You are required to set up a trusted issuer (UAA) before creating a platform service instance.
About This Task
After you have an instance of a trusted issuer in place, you can create an instance of a platform service for your application development.
Procedure
- Sign into your Predix account at https://www.predix.io.
- Navigate to Catalog > Services tab, and click the Service tile.
- Click Subscribe on the required plan.
- Complete the fields on the New Service Instance.
Field Description Org Select your organization. Space Select the space for your application. User Account & Authentication (UAA) Select an existing UAA instance, or create a new one. For more information, see uaas-get-started.html#task_y1l_vms_2s. Service instance name Enter a unique name for this service instance. Service plan Select a plan. - Click Create Service.
Creating a Platform Service Instance Using Cloud Foundry Commands
You can use the Cloud Foundry CLI to create a platform service instance.
Procedure
- Use the Cloud Foundry CLI to log into Cloud Foundry.
cf login -a <API_Endpoint>
Note: If you are a GE employee, you must use thecf login --sso
command to log into Cloud Foundry. After you enter your SSO, you will receive a one-time passcode URL. Copy this URL and paste it in a browser to retrieve your one-time passcode. Use this code with thecf
command to complete the CF login process.Depending on your Predix.io registration, the value of
<API_Endpoint>
is one of the following:- Predix US-West
https://api.system.aws-usw02-pr.ice.predix.io
- Predix Europe
https://api.system.aws-eu-central-1-pr.ice.predix.io
For example,
cf login -a https://api.system.aws-usw02-pr.ice.predix.io
- Predix US-West
- List the services in the Cloud Foundry marketplace by entering the following command:
cf marketplace
- Create a service instance by entering the following command:
cf create-service <service_name> <plan> <my_instance> -c '{"trustedIssuerIds":["<uaa_instance1_issuerId>", "<uaa_instance2_issuerID>"]}'
where:
-
<service_name>
is the name of the service in the Cloud Foundry marketplace. For example, the Asset service ispredix-asset
. -
<plan>
is the plan associated with a service. For example, thepredix-acs
service can be associated with thebasic
plan. -
<uaa_instance_issuerID>
is theissuerID
of your trusted issuer (UAA instance), such ashttps://13fa0384-9e2a-48e2-9d06-2c95a1f4f5ea.predix-uaa.grc-apps.svc.ice.ge.com/oauth/token
. You can use a comma-separated list to specify multiple trusted issuers. You can retrieve this URL from the VCAP_SERVICES environment variable after binding your UAA instance to an application.
Note: Cloud Foundry CLI syntax can differ between Windows and Linux operating systems. See the Cloud Foundry help for the appropriate syntax for your operating system. For example, to see help for thecreate service
command, runcf cs
.Cloud Foundry displays a message confirming that the service instance has been created. You can retrieve the URI of this instance from the VCAP_SERVICES environment variable after binding it to an application.
-