VK Cloud logo

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:

  1. Navigate to the broker directory.

  2. Place the service configuration file catalog_<SERVICE_NAME>.json in the resources directory.

  3. In the resources/plan_mapping.json file, specify:

    • <SERVICE_NAME> — the service name.

    • <PLAN_ID> — the IDs of the tariff plans specified in the catalog_<SERVICE_NAME>.json file.

    • <SAAS_PLAN_ID> (string format) — 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  }}
  4. In the broker directory, rename the .env.example file to .env.

  5. In the .env file, specify the service name in BROKER_MODE:

    BROKER_MODE=<SERVICE_NAME>
Was this article helpful?