diff --git a/terraform/modules/dns/main.tf b/terraform/modules/dns/main.tf index 4c584d58..7d546087 100644 --- a/terraform/modules/dns/main.tf +++ b/terraform/modules/dns/main.tf @@ -40,12 +40,15 @@ resource "terraform_data" "custom_domain" { provisioner "local-exec" { command = "az containerapp hostname add --hostname ${self.input.public_hostname} -g ${self.input.resource_group_name} -n ${self.input.container_app_name}" + on_failure = continue } provisioner "local-exec" { command = "az containerapp hostname bind --hostname ${self.input.public_hostname} -g ${self.input.resource_group_name} -n ${self.input.container_app_name} --environment ${self.input.container_app_environment_name} --validation-method CNAME" + on_failure = continue } provisioner "local-exec" { when = destroy command = "az containerapp hostname delete --hostname ${self.input.public_hostname} -g ${self.input.resource_group_name} -n ${self.input.container_app_name} --yes" + on_failure = continue } }