Skip to content

Commit

Permalink
Feat/dtoss 3407 apim add sign up variable (#63)
Browse files Browse the repository at this point in the history
* Add sign-up variable

* Amend resource placement

* Fix resource placement
  • Loading branch information
josielsouzanordcloud authored Nov 22, 2024
1 parent 814f1df commit d77bea0
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions infrastructure/modules/api-management/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,27 +125,27 @@ resource "azurerm_api_management" "apim" {
}

dynamic "sign_in" {
for_each = var.sign_in_enabled ? ["enabled"] : []
content {
enabled = var.sign_in_enabled
}
}
for_each = var.sign_in_enabled ? ["enabled"] : []
content {
enabled = var.sign_in_enabled
}
}

dynamic "sign_up" {
for_each = var.sign_up_enabled ? ["enabled"] : []
dynamic "sign_up" {
for_each = var.sign_up_enabled ? ["enabled"] : []

content {
enabled = var.sign_up_enabled
dynamic "terms_of_service" {
for_each = var.terms_of_service_configuration
content {
enabled = var.sign_up_enabled
dynamic "terms_of_service" {
for_each = var.terms_of_service_configuration
content {
consent_required = terms_of_service.value.consent_required
enabled = terms_of_service.value.enabled
text = terms_of_service.value.text
}
}
consent_required = terms_of_service.value.consent_required
enabled = terms_of_service.value.enabled
text = terms_of_service.value.text
}
}
}
}

identity {
type = var.identity_type
Expand Down

0 comments on commit d77bea0

Please sign in to comment.