We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bdd32c commit 0bbdb3eCopy full SHA for 0bbdb3e
main.tf
@@ -71,9 +71,13 @@ resource "azurerm_mysql_flexible_server" "main" {
71
standby_availability_zone = lookup(high_availability.value, "standby_availability_zone", 1)
72
}
73
74
- identity {
75
- type = var.identity_type
+ dynamic "identity" {
+ for_each = toset(var.identity_type != null ? [var.identity_type] : [])
76
+ content {
77
+ type = var.identity_type
78
identity_ids = var.identity_type == "UserAssigned" ? var.user_assigned_identity_ids : []
79
+ }
80
+
81
82
83
version = var.mysql_version
0 commit comments