Skip to content

Commit

Permalink
fix(app_gateway): Add priority required (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: pasqualedevita <>
pasqualedevita authored Jan 19, 2023
1 parent bb9ebd2 commit 8989df3
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app_gateway/README.md
Original file line number Diff line number Diff line change
@@ -489,7 +489,7 @@ No modules.
| <a name="input_public_ip_id"></a> [public\_ip\_id](#input\_public\_ip\_id) | Public IP | `string` | n/a | yes |
| <a name="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name) | n/a | `string` | n/a | yes |
| <a name="input_rewrite_rule_sets"></a> [rewrite\_rule\_sets](#input\_rewrite\_rule\_sets) | Rewrite rules sets obj descriptor | <pre>list(object({<br> name = string # Unique name of the rewrite rule set block<br> rewrite_rules = list(object({<br> name = string # Unique name of the rewrite rule block<br> rule_sequence = number # Rule sequence of the rewrite rule that determines the order of execution in a set.<br> conditions = list(object({ # One or more condition blocks as defined above.<br> variable = string # The variable of the condition.<br> pattern = string # The pattern, either fixed string or regular expression, that evaluates the truthfulness of the condition.<br> ignore_case = bool # Perform a case in-sensitive comparison. Defaults to false<br> negate = bool # Negate the result of the condition evaluation. Defaults to false<br> }))<br><br> request_header_configurations = list(object({<br> header_name = string # Header name of the header configuration.<br> header_value = string # Header value of the header configuration. To delete a request header set this property to an empty string.<br> }))<br><br> response_header_configurations = list(object({<br> header_name = string # Header name of the header configuration.<br> header_value = string # Header value of the header configuration. To delete a response header set this property to an empty string.<br> }))<br><br> url = object({<br> path = string # The URL path to rewrite.<br> query_string = string # The query string to rewrite.<br> })<br><br> }))<br> }))</pre> | `[]` | no |
| <a name="input_routes"></a> [routes](#input\_routes) | n/a | <pre>map(object({<br> listener = string # Prefix for http_listener_name<br> backend = string # Prefix for backend_address_pool_name, backend_http_settings_name<br> rewrite_rule_set_name = string # The Name of the Rewrite Rule Set which should be used for this Routing Rule.<br> }))</pre> | n/a | yes |
| <a name="input_routes"></a> [routes](#input\_routes) | n/a | <pre>map(object({<br> listener = string # Prefix for http_listener_name<br> backend = string # Prefix for backend_address_pool_name, backend_http_settings_name<br> rewrite_rule_set_name = string # The Name of the Rewrite Rule Set which should be used for this Routing Rule.<br> priority = number # Rule evaluation order can be dictated by specifying an integer value from 1 to 20000 with 1 being the highest priority and 20000 being the lowest priority.<br> }))</pre> | n/a | yes |
| <a name="input_routes_path_based"></a> [routes\_path\_based](#input\_routes\_path\_based) | To configure path based routing | <pre>map(object({<br> listener = string # Prefix for http_listener_name<br> url_map_name = string # The Name of the URL Path Map which should be associated with this Routing Rule.<br> priority = number # Rule evaluation order can be dictated by specifying an integer value from 1 to 20000 with 1 being the highest priority and 20000 being the lowest priority.<br> }))</pre> | `{}` | no |
| <a name="input_sec_log_analytics_workspace_id"></a> [sec\_log\_analytics\_workspace\_id](#input\_sec\_log\_analytics\_workspace\_id) | Log analytics workspace security (it should be in a different subscription). | `string` | `null` | no |
| <a name="input_sec_storage_id"></a> [sec\_storage\_id](#input\_sec\_storage\_id) | Storage Account security (it should be in a different subscription). | `string` | `null` | no |
1 change: 1 addition & 0 deletions app_gateway/main.tf
Original file line number Diff line number Diff line change
@@ -186,6 +186,7 @@ resource "azurerm_application_gateway" "this" {
backend_address_pool_name = "${route.value.backend}-address-pool"
backend_http_settings_name = "${route.value.backend}-http-settings"
rewrite_rule_set_name = route.value.rewrite_rule_set_name
priority = route.value.priority
}
}

1 change: 1 addition & 0 deletions app_gateway/variables.tf
Original file line number Diff line number Diff line change
@@ -100,6 +100,7 @@ variable "routes" {
listener = string # Prefix for http_listener_name
backend = string # Prefix for backend_address_pool_name, backend_http_settings_name
rewrite_rule_set_name = string # The Name of the Rewrite Rule Set which should be used for this Routing Rule.
priority = number # Rule evaluation order can be dictated by specifying an integer value from 1 to 20000 with 1 being the highest priority and 20000 being the lowest priority.
}))
}

0 comments on commit 8989df3

Please sign in to comment.