Getting bus info
- In the management console
, go to the folder containing the bus. - Go to Serverless Integrations.
- In the left-hand panel, click
EventRouter. - Select a bus. The Overview page will display detailed information about the bus.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.
-
See the description of the CLI command for viewing bus info:
yc serverless eventrouter bus get --help -
Get a list of buses:
yc serverless eventrouter bus listResult:
+----------------------+------------------+----------------------+--------+---------------------+ | ID | NAME | FOLDER ID | STATUS | DELETION PROTECTION | +----------------------+------------------+----------------------+--------+---------------------+ | f6676a9ti657******** | my-new-bus-17 | b1g681qpemb4******** | ACTIVE | false | | f66aevm4ithv******** | my-favourite-bus | b1g681qpemb4******** | ACTIVE | true | | f66m2q222n92******** | my-bus-42 | b1g681qpemb4******** | ACTIVE | false | +----------------------+------------------+----------------------+--------+---------------------+ -
Get detailed information about a bus by specifying its name or ID:
yc serverless eventrouter bus get <bus_ID>Result:
id: f66ngs9760f1******** folder_id: b1go3el0d8fs******** cloud_id: b1gia87mbaom******** created_at: "2025-02-18T13:23:45.126870Z" name: my-bus status: ACTIVE
With Terraform
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
-
Add the
dataandoutputsections to the Terraform configuration file:data "yandex_serverless_eventrouter_bus" "my-bus" { bus_id = "<bus_ID>" } output "bus-folder" { value = data.yandex_serverless_eventrouter_bus.my-bus.folder_id }Where:
data "yandex_serverless_eventrouter_bus": Description of the bus as a data source:resource_id: Bus ID.
output "bus-folder": Output variable with information about the folder housing the bus (folder_id):value: Return value.
You can replace
folder_idwith any other parameter to get the information you need. For more information about theyandex_serverless_eventrouter_busdata source properties, see this Terraform provider guide. -
Create the resources:
-
In the terminal, navigate to the configuration file directory.
-
Make sure the configuration is correct using this command:
terraform validateIf the configuration is valid, you will get this message:
Success! The configuration is valid. -
Run this command:
terraform planYou will see a list of resources and their properties. No changes will be made at this step. Terraform will show any errors in the configuration.
-
Apply the configuration changes:
terraform apply -
Type
yesand press Enter to confirm the changes.
Terraform will create the required resources and display their output variables. To check the results, run this command:
terraform outputResult:
bus-folder = "b1geoelk7fld********" -
To get detailed information about a bus, use the get REST API method for the Bus resource or the BusService/Get gRPC API call.