Skip to content

Commit

Permalink
Merge pull request #314 from recognizegroup/bug/multiple-backend-poli…
Browse files Browse the repository at this point in the history
…cies-not-supported

Apply only one backend policy at a time as multiple backend policies are not supported
  • Loading branch information
pipalmic authored Apr 25, 2023
2 parents 7cd42f6 + 385a1af commit d6da208
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions modules/azure/api_management_api/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -185,18 +185,19 @@ resource "azurerm_api_management_api_policy" "api_policy" {
%{endif}
</inbound>
<backend>
<base />
<backend>
%{if var.custom_backend_policy != null}
${var.custom_backend_policy}
%{endif}
${var.custom_backend_policy}
%{else}
<base />
%{endif}
</backend>
<outbound>
<base />
%{if var.custom_outbound_policy != null}
${var.custom_outbound_policy}
%{endif}
%{if var.custom_outbound_policy != null}
${var.custom_outbound_policy}
%{endif}
</outbound>
</policies>
XML
Expand Down

0 comments on commit d6da208

Please sign in to comment.