This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
116 lines (91 loc) · 2.67 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
terraform {
required_version = ">= 0.13.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 2.82.0"
}
}
}
provider "azurerm" {
features {}
}
module "resource_group" {
source = "git@github.com:padok-team/terraform-azurerm-resource-group.git?ref=v0.0.2"
name = "example_rg"
location = "West Europe"
}
# Create a resource group to deploy the frontdoor
module "rg_example" {
source = "git@github.com:padok-team/terraform-azurerm-resource-group.git?ref=v0.0.2"
name = "frontdoor_example"
location = "West Europe"
tags = {
terraform = "true"
padok = "library"
}
}
module "frontdoor" {
source = "../../"
name = "padokexamplefrontdoor"
resource_group_name = module.rg_example.this.name
backend_pools = [{
name = "example-backendpool"
backends = [{
enabled = true
address = "padok.fr"
host_header = "padok.fr"
http_port = 80
https_port = 443
priority = null
weight = null
}]
load_balancing_name = "example-load-balancing"
health_probe_name = "example-health-probe"
}]
backend_pool_health_probes = [{
name = "example-health-probe"
enabled = false
path = null
protocol = null
probe_method = null
interval_in_seconds = null
}]
backend_pool_load_balancings = [{
name = "example-load-balancing"
sample_size = null
successful_samples_required = null
additional_latency_milliseconds = null
}]
enforce_backend_pools_certificate_name_check = false
friendly_name = "MyExampleFrontDoor"
frontend_endpoints = [{
name = "example-frontendendpoint"
host_name = "padokexamplefrontdoor.azurefd.net"
session_affinity_enabled = null
session_affinity_ttl_seconds = null
web_application_firewall_policy_link_id = null
}]
routing_rules = [{
name = "example-routingrule"
frontend_endpoints = ["example-frontendendpoint"]
accepted_protocols = ["Http", "Https"]
patterns_to_match = ["/*"]
enabled = true
forwarding_configuration = {
backend_pool_name = "example-backendpool"
cache_enabled = false
forwarding_protocol = "MatchRequest"
cache_use_dynamic_compression = null
cache_query_parameter_strip_directive = null
cache_query_parameters = null
cache_duration = null
custom_forwarding_path = null
}
redirect_configuration = null
}]
tags = {
terraform = "true"
padok = "library"
}
}