Skip to content

Commit

Permalink
Update dns.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
benchiverton committed Jul 1, 2024
1 parent 75a0549 commit 6eebbd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions terraform/instance/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ resource "azurerm_dns_txt_record" "api" {
}

resource "azurerm_container_app_custom_domain" "api" {
name = trimprefix(azurerm_dns_txt_record.api.fqdn, "asuid.")
name = trimsuffix(trimprefix(azurerm_dns_txt_record.api.fqdn, "asuid."), ".")
container_app_id = azurerm_container_app.api.id
certificate_binding_type = "SniEnabled"

lifecycle {
// When using an Azure created Managed Certificate these values must be added to ignore_changes to prevent resource recreation.
Expand Down

0 comments on commit 6eebbd2

Please sign in to comment.