-
Notifications
You must be signed in to change notification settings - Fork 0
/
gateway.tf
66 lines (57 loc) · 2.02 KB
/
gateway.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
resource "azurerm_application_gateway" "network" {
name = "example-appgateway"
resource_group_name = "example-resourceGroup"
location = "example --West-US"
sku {
name = "Standard_Small"
tier = "Standard"
capacity = 2
}
gateway_ip_configuration {
name = "my-gateway-ip-configuration"
subnet_id = "your subnet id"
}
frontend_port {
name = "name"
port = "port-no"
}
####Missing WAF block: As per azure best practices, it is important to have a web application firewall enabled at application gateway.
frontend_ip_configuration {
name = "name"
public_ip_address_id = "Ip-address"
}
backend_address_pool {
name = local.backend_address_pool_name
}
backend_http_settings {
name = local.http_setting_name
cookie_based_affinity = "Disabled"
path = "/path1/"
port = 80
protocol = "Http"
request_timeout = 60
}
http_listener {
name = local.listener_name
frontend_ip_configuration_name = local.frontend_ip_configuration_name
frontend_port_name = local.frontend_port_name
protocol = "Http"
}
request_routing_rule {
name = local.request_routing_rule_name
rule_type = "Basic"
http_listener_name = local.listener_name
backend_address_pool_name = local.backend_address_pool_name
backend_http_settings_name = local.http_setting_name
}
tags = {
git_commit = "b07a42ebd74b8f0ba647e20b872474b1c29b4814"
git_file = "terraform/azure/application_gateway.tf"
git_last_modified_at = "2021-05-02 10:08:55"
git_last_modified_by = "[email protected]"
git_modifiers = "harkiratbhardwaj/nimrodkor"
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "3f62753b-3d20-4fa7-b402-b780234a14d8"
}
}