Uploading service configuration to the broker
Upload the service configuration to the broker. If the SaaS broker was created from a template, follow these steps:
-
Navigate to the broker directory.
-
Place the service configuration file
catalog_<SERVICE_NAME>.jsonin theresourcesdirectory. -
In the
resources/plan_mapping.jsonfile, specify:-
<SERVICE_NAME>— the service name. -
<PLAN_ID>— the IDs of the tariff plans specified in thecatalog_<SERVICE_NAME>.jsonfile. -
<SAAS_PLAN_ID>(stringformat) — the IDs of the tariff plans on the service side, corresponding to the tariff plan IDs<PLAN_ID>.{"<SERVICE_NAME>": {"<PLAN_ID>": <SAAS_PLAN_ID>,"<PLAN_ID>": <SAAS_PLAN_ID>}}
Example contents of the `plan_mapping.json` file{"VKT": {"0dc54b75-XXXX-89d5a47eef71": 1,"312b628e-XXXX-080ab4ca3acb": 2,"e2ae1588-XXXX-3f5081a799a9": 3,"b54e7247-XXXX-7a9dccc22e7b": 4}} -
-
In the broker directory, rename the
.env.examplefile to.env. -
In the
.envfile, specify the service name inBROKER_MODE:BROKER_MODE=<SERVICE_NAME>
Was this article helpful?