Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: basic files #20

Merged
merged 3 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .config/.terraform-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,13 @@ content: |
{{ end }}{{ printf "\n" -}}

{{ template "table" dict "Resource" "sku" "File" ".config/sku_parameters.json" }}
{{ template "table" dict "Resource" "autoscale_configuration" "File" ".config/autoscale_configuration_parameters.json" }}
{{ template "table" dict "Resource" "waf_configuration" "File" ".config/waf_configuration_parameters.json" }}
{{ template "table" dict "Resource" "frontend_ip_configuration" "File" ".config/frontend_ip_configuration_parameters.json" }}
{{ template "table" dict "Resource" "backend_address_pools" "File" ".config/backend_address_pool_parameters.json" }}
{{ template "table" dict "Resource" "ssl_certificates" "File" ".config/ssl_certificate_parameters.json" }}
{{ template "table" dict "Resource" "http_listeners" "File" ".config/http_listener_parameters.json" }}
{{ template "table" dict "Resource" "probes" "File" ".config/probe_parameters.json" }}
{{ template "table" dict "Resource" "backend_http_settings" "File" ".config/backend_http_setting_parameters.json" }}
{{ template "table" dict "Resource" "request_routing_rules" "File" ".config/request_routing_rule_parameters.json" }}{{ printf "\n" -}}

Expand Down
18 changes: 18 additions & 0 deletions .config/autoscale_configuration_parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"Name": "min_capacity",
"Description": "Minimum capacity for autoscaling. Accepted values are in the range `0` to `100`.",
"Type": "number",
"Default": "n/a",
"Required": "yes",
"Support": []
},
{
"Name": "max_capacity",
"Description": "Maximum capacity for autoscaling. Accepted values are in the range `2` to `125`.",
"Type": "number",
"Default": "n/a",
"Required": "yes",
"Support": []
}
]
2 changes: 1 addition & 1 deletion .config/backend_address_pool_parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{
"Name": "private_ip_address",
"Description": "A list of IP Addresses which should be part of the Backend Address Pool.",
"Type": "string",
"Type": "list(string)",
"Default": "null",
"Required": "no",
"Support": []
Expand Down
37 changes: 28 additions & 9 deletions .config/backend_http_setting_parameters.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,53 @@
[
{
"Name": "name",
"Description": "The Name of this Request Routing Rule.",
"Description": "The name of the Backend HTTP Settings Collection.",
"Type": "string",
"Default": "n/a",
"Required": "yes",
"Support": []
},
{
"Name": "http_listener_name",
"Description": "The Name of the HTTP Listener which should be used for this Routing Rule.",
"Name": "port",
"Description": "The port which should be used for this Backend HTTP Settings Collection.",
"Type": "string",
"Default": "n/a",
"Required": "yes",
"Support": []
},
{
"Name": "backend_address_pool_name",
"Description": "The Name of the Backend Address Pool which should be used for this Routing Rule.",
"Name": "protocol",
"Description": "The Protocol which should be used. Possible values are",
"Type": "string",
"Default": "n/a",
"Required": "yes",
"Support": []
"Support": [
"Http",
"Https"
]
},
{
"Name": "backend_http_settings_name",
"Description": "The Name of the Backend HTTP Settings Collection which should be used for this Routing Rule.",
"Type": "string",
"Name": "request_timeout",
"Description": "The request timeout in seconds, which must be between `1` and `86400` seconds.",
"Type": "number",
"Default": "n/a",
"Required": "yes",
"Support": []
},
{
"Name": "host_name",
"Description": "Host header to be sent to the backend servers. Cannot be set if `pick_host_name_from_backend_address` is set to `true`.",
"Type": "string",
"Default": "null",
"Required": "no",
"Support": []
},
{
"Name": "probe_name",
"Description": "The name of an associated HTTP Probe.",
"Type": "string",
"Default": "null",
"Required": "no",
"Support": []
}
]
18 changes: 17 additions & 1 deletion .config/http_listener_parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{
"Name": "port",
"Description": "The port used for this HTTP Listener.",
"Type": "string",
"Type": "number",
"Default": "n/a",
"Required": "yes",
"Support": []
Expand All @@ -25,5 +25,21 @@
"Http",
"Https"
]
},
{
"Name": "host_name",
"Description": "The Hostname which should be used for this HTTP Listener. Setting this value changes Listener Type to Multi site",
"Type": "string",
"Default": "null",
"Required": "no",
"Support": []
},
{
"Name": "ssl_certificate_name",
"Description": "The name of the associated SSL Certificate which should be used for this HTTP Listener.",
"Type": "string",
"Default": "null",
"Required": "no",
"Support": []
}
]
61 changes: 61 additions & 0 deletions .config/probe_parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[
{
"Name": "name",
"Description": "The Name of the Probe.",
"Type": "string",
"Default": "n/a",
"Required": "yes",
"Support": []
},
{
"Name": "host",
"Description": "The Hostname used for this Probe. If the Application Gateway is configured for a single site, by default the Host name should be specified as `127.0.0.1`, unless otherwise configured in custom probe. Cannot be set if `pick_host_name_from_backend_http_settings` is set to `true`.",
"Type": "string",
"Default": "null",
"Required": "no",
"Support": []
},
{
"Name": "protocol",
"Description": "The Protocol used for this Probe. Possible values are",
"Type": "string",
"Default": "n/a",
"Required": "yes",
"Support": [
"Http",
"Https"
]
},
{
"Name": "path",
"Description": "The Path used for this Probe.",
"Type": "string",
"Default": "null",
"Required": "no",
"Support": []
},
{
"Name": "interval",
"Description": "The Interval between two consecutive probes in seconds. Possible values range from `1` second to a maximum of `86400` seconds.",
"Type": "number",
"Default": "null",
"Required": "no",
"Support": []
},
{
"Name": "timeout",
"Description": "The Timeout used for this Probe, which indicates when a probe becomes unhealthy. Possible values range from `1` second to a maximum of `86400` seconds.",
"Type": "string",
"Default": "null",
"Required": "no",
"Support": []
},
{
"Name": "unhealthy_threshold",
"Description": "The Unhealthy Threshold for this Probe, which indicates the amount of retries which should be attempted before a node is deemed unhealthy. Possible values are from `1` to `20`.",
"Type": "string",
"Default": "null",
"Required": "no",
"Support": []
}
]
19 changes: 8 additions & 11 deletions .config/request_routing_rule_parameters.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
[
{
"Name": "name",
"Description": "The name of the Backend HTTP Settings Collection.",
"Description": "The Name of this Request Routing Rule.",
"Type": "string",
"Default": "n/a",
"Required": "yes",
"Support": []
},
{
"Name": "port",
"Description": "The port which should be used for this Backend HTTP Settings Collection.",
"Name": "http_listener_name",
"Description": "The Name of the HTTP Listener which should be used for this Routing Rule.",
"Type": "string",
"Default": "n/a",
"Required": "yes",
"Support": []
},
{
"Name": "protocol",
"Description": "The Protocol which should be used. Possible values are",
"Name": "backend_address_pool_name",
"Description": "The Name of the Backend Address Pool which should be used for this Routing Rule.",
"Type": "string",
"Default": "n/a",
"Required": "yes",
"Support": [
"Http",
"Https"
]
"Support": []
},
{
"Name": "request_timeout",
"Description": "The request timeout in seconds, which must be between `1` and `86400` seconds.",
"Name": "backend_http_settings_name",
"Description": "The Name of the Backend HTTP Settings Collection which should be used for this Routing Rule.",
"Type": "string",
"Default": "n/a",
"Required": "yes",
Expand Down
12 changes: 2 additions & 10 deletions .config/sku_parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,9 @@
{
"Name": "capacity",
"Description": "The Capacity to use for this Application Gateway. When using a v1 SKU this value must be between `1` and `32`, and `1` to `125` for a v2 SKU.",
"Type": "string",
"Type": "number",
"Default": "null",
"Required": "no",
"Support": [
"Standard_Small",
"Standard_Medium",
"Standard_Large",
"Standard_v2",
"WAF_Medium",
"WAF_Large",
"WAF_v2"
]
"Support": []
}
]
42 changes: 42 additions & 0 deletions .config/waf_configuration_parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[
{
"Name": "enabled",
"Description": "The Tier of the SKU to use for this Application Gateway. Possible values are",
"Type": "string",
"Default": "n/a",
"Required": "yes",
"Support": [
"Standard",
"Standard_v2",
"WAF",
"WAF_v2"
]
},
{
"Name": "firewall_mode",
"Description": "The Web Application Firewall Mode. Possible values are",
"Type": "string",
"Default": "Prevention",
"Required": "no",
"Support": [
"Detection",
"Prevention"
]
},
{
"Name": "rule_set_version",
"Description": "The Version of the Rule Set used for this Web Application Firewall. Possible values are",
"Type": "number",
"Default": "3.2",
"Required": "no",
"Support": [
"0.1",
"1.0",
"2.1",
"2.2.9",
"3.0",
"3.1",
"3.2"
]
}
]
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:

- name: Terraform test
run: terraform test
if: always()
if: always()
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- markdownlint-disable MD041 -->
## 1.2.0 (January 27, 2022)

FEATURES:
Expand Down
Loading