# saif-event-subscriber-service

<!-- BEGIN_TF_DOCS -->
## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | >= 4.0, < 5.0 |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_application_name"></a> [application\_name](#input\_application\_name) | The name of the application. Used in storage account naming. | `string` | n/a | yes |
| <a name="input_deployed_by"></a> [deployed\_by](#input\_deployed\_by) | Identity that triggered the deployment (pipeline name or user). | `string` | `"terraform"` | no |
| <a name="input_dlq_manager_identities"></a> [dlq\_manager\_identities](#input\_dlq\_manager\_identities) | Entra ID identities to grant Azure Service Bus Data Owner on each subscription's dead-letter queue. Specify either object\_id or group\_name per entry. | <pre>map(object({<br/>    object_id  = optional(string)<br/>    group_name = optional(string)<br/>  }))</pre> | `{}` | no |
| <a name="input_dlq_reader_identities"></a> [dlq\_reader\_identities](#input\_dlq\_reader\_identities) | Entra ID identities to grant Azure Service Bus Data Receiver on each subscription's dead-letter queue. Specify either object\_id or group\_name per entry. | <pre>map(object({<br/>    object_id  = optional(string)<br/>    group_name = optional(string)<br/>  }))</pre> | `{}` | no |
| <a name="input_environment"></a> [environment](#input\_environment) | A name for the environment. Used in resource naming. | `string` | n/a | yes |
| <a name="input_environment_short_name"></a> [environment\_short\_name](#input\_environment\_short\_name) | Deprecated — computed by the environment module. Accepted for backward compatibility with generated wrapper configs. | `string` | `""` | no |
| <a name="input_events"></a> [events](#input\_events) | One or more events to create subscriptions to listen for. | <pre>list(object({<br/>    topic        = string<br/>    subscription = string<br/>  }))</pre> | n/a | yes |
| <a name="input_function_app_project_id"></a> [function\_app\_project\_id](#input\_function\_app\_project\_id) | The ID of the project where the function app and resources are created. | `string` | n/a | yes |
| <a name="input_is_production"></a> [is\_production](#input\_is\_production) | Indicates if the environment is a production environment. | `bool` | `false` | no |
| <a name="input_namespace_id"></a> [namespace\_id](#input\_namespace\_id) | The ID of the Service Bus namespace where the subscription will be created.<br/>Omit this variable if you want to use the Platform-created namespaces." | `string` | `""` | no |
| <a name="input_namespace_name"></a> [namespace\_name](#input\_namespace\_name) | The name of the Service Bus namespace where the subscription will be created.<br/>Omit this variable if you want to use the Platform-created namespaces." | `string` | `""` | no |
| <a name="input_owner"></a> [owner](#input\_owner) | The owner of the resources. | `string` | n/a | yes |
| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | The main ID of the project (API). | `string` | n/a | yes |
| <a name="input_resource_location"></a> [resource\_location](#input\_resource\_location) | The Azure region where resources will be created. | `string` | `"westus2"` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to assign to the resources. | `map(string)` | n/a | yes |
| <a name="input_tenant"></a> [tenant](#input\_tenant) | Deprecated — the Azure infra tenant is fixed to Corporate (see local.azure\_tenant). Retained for backward compatibility with existing workspace variable sets (e.g. the Okta credentials variable set that injects tenant = "ext"), but no longer read by this module. | `string` | n/a | yes |

## Outputs

No outputs.

## Resources


- resource.azurerm_role_assignment.service_bus_data_receiver (/terraform-docs/security.tf#10)
- data source.azurerm_cosmosdb_account.api_service (/terraform-docs/data.tf#27)
- data source.azurerm_resources.api_service_cosmosdb_accounts (/terraform-docs/data.tf#22)    
<!-- END_TF_DOCS -->

---

[View source on GitHub](https://github.com/saif-corp/forge/blob/main/src/terraform/saif-event-subscriber-service/README.md)
