- Create Event Router Bus
- Create Event Router Connector of three types: timer, ymq, yds
- Create Event Router Rule (or Rules) of seven types: container, function, gateway_websocket_broadcast, workflow, logging, yds, ymq
- Easy to use in other resources via outputs
Notes:
- service accounts with right permissions for different resources are created for you in the examples
- 4 examples are provided for you: 1 with multiple connectors, 1 with multiple targets for rule, 1 with one rule and one connector, 1 with multiple rules
Notes:
- connector must be of only one type (timer, ymq or yds)
- you can use whether one connector or multiple ones
Notes:
- you can use whether one rule or multiple ones
- you can define multiple targets for each rule
- Install YC CLI
- Add environment variables for terraform authentication in Yandex Cloud
export YC_TOKEN=$(yc iam create-token)
export YC_CLOUD_ID=$(yc config get cloud-id)
export YC_FOLDER_ID=$(yc config get folder-id)
Name | Version |
---|---|
terraform | >= 1.0.0 |
yandex | >= 0.108 |
Name | Version |
---|---|
yandex | 0.147.0 |
No modules.
Name | Type |
---|---|
yandex_serverless_eventrouter_bus.main | resource |
yandex_serverless_eventrouter_connector.connectors | resource |
yandex_serverless_eventrouter_rule.rules | resource |
yandex_client_config.client | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
bus_description | Description of the Event Router Bus | string |
"Yandex Cloud EventRouter Bus" |
no |
bus_labels | Labels for the Event Router Bus | map(string) |
{} |
no |
bus_name | Name of the Event Router Bus | string |
"event-bus" |
no |
connectors | Example:connectors = [ |
list(object({ |
[] |
no |
folder_id | The ID of the folder that the resources belong to. | string |
null |
no |
rules | Example:rules = [ |
list(object({ |
[] |
no |
Name | Description |
---|---|
bus_id | ID of the Event Router Bus |
bus_name | Name of the Event Router Bus |
connector_ids | IDs of the Event Router Connectors |
connector_names | Names of the Event Router Connectors |
rule_ids | IDs of the Event Router Rules |
rule_names | Names of the Event Router Rules |