Skip to content

saif-event-service

Providers

Name Version
azapi >= 2.0, < 3.0
azuread >= 3.0, < 4.0
azurerm >= 4.0, < 5.0

Inputs

Name Description Type Default Required
api n/a
object({
name = string
type = string
open_api_file = string
})
n/a yes
authorized_apps Forge APIs granted Azure Service Bus Data Sender on this event service's topics so they can publish with the Service Bus SDK. Each project_id resolves to the app registration service principal "{project_id}-{environment_short_name}". topics limits the grant to the named topics; null grants every topic.
list(object({
project_id = string
topics = optional(list(string))
}))
[] no
default_message_ttl ISO 8601 default time-to-live for messages on every topic (e.g. P14D). Null keeps the Azure Service Bus default, which is effectively unlimited. string null no
duplicate_detection_history_time_window ISO 8601 duplicate detection history window (PT20S to P7D). Only applies when requires_duplicate_detection is true. string "PT10M" no
environment The full name of the environment in which the resources are deployed string n/a yes
environment_short_name A short name for the environment (e.g., dev, qa, prod) string n/a yes
is_production Whether this is a production environment bool false no
max_message_size_in_kilobytes The maximum message size in kilobytes for the Service Bus Topic. number 1024 no
max_size_in_megabytes The maximum size in megabytes for the Service Bus Topic. number 1024 no
organization_name (Deprecated) The name of the organization. No longer used — kept for backwards compatibility. string "saif" no
owner The team that owns this service string "" no
project_id The id of the project. This will be used to name the resources. string n/a yes
requires_duplicate_detection Enable Service Bus duplicate detection on every topic. The event service sets the message MessageId from the caller's eventId, so a repeated eventId within the history window is dropped silently. Create-only: changing this value recreates the topics, discarding any messages on them. bool false no
secrets A map of secrets from Azure Devops Library map(string) n/a yes
status The status of the Service Bus Topic (e.g., Active, Disabled). string "Active" no
tags A map of tags to be applied to resources in the module. map(string) n/a yes
tenant (Deprecated) The name of the tenant. The Azure infra tenant is fixed to Corporate (see local.azure_tenant in data.tf) — this input is retained for backward compatibility only and is ignored. string "Corporate" no

Outputs

Name Description
api_id The ID of the API Management API.
api_name The name of the API Management API.
api_path The path of the API Management API.
event_url Base URL of the event service through the internal Front Door (https://{internal host}/api/{type}/{name}). Null when no API is created.
servicebus_namespace_fqdn Fully qualified Service Bus namespace host name that authorized_apps callers pass to ServiceBusClient.
servicebus_topic_ids The IDs of the Service Bus Topics.
servicebus_topic_names The names of the Service Bus Topics.

Resources

  • resource.azapi_resource.azuremonitor_diagnostic (/terraform-docs/main.tf#66)
  • resource.azurerm_cdn_frontdoor_custom_domain_association.main (/terraform-docs/frontdoor.tf#26)
  • resource.azurerm_role_assignment.authorized_app_sender (/terraform-docs/authorized_apps.tf#41)
  • data source.azuread_service_principal.authorized_app (/terraform-docs/authorized_apps.tf#27)
  • data source.azurerm_api_management.shared (/terraform-docs/main.tf#56)

View source on GitHub