equinor / terraform-baseline

Best practices for creating reusable Terraform modules using the Azure provider
https://equinor.github.io/terraform-baseline/
MIT License
12 stars 5 forks source link

Disable local authentication by default in Azure Service Bus module #185

Closed hknutsen closed 2 months ago

hknutsen commented 2 months ago

Module Name

service-bus

Description

Disable local authentication by default, enforcing Microsoft Entra authentication, however leave the option to explicitly enable local authentication if needed.

Example Terraform Configuration

# variables.tf

variable "local_auth_enabled" {
  # omitted
  type    = bool
  default = false
}

# main.tf

resource "azurerm_servicebus_namespace" "this" {
  # omitted

  local_auth_enabled = var.local_auth_enabled

  # omitted
}