-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2-network-security-group-rules.tf
41 lines (39 loc) · 1.79 KB
/
2-network-security-group-rules.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
resource "azurerm_network_security_rule" "region_02_nsg_01_rule_01" {
name = "nsg01rule-https"
priority = 1000
direction = "Inbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "443"
source_address_prefix = "*"
destination_address_prefix = "*"
resource_group_name = azurerm_resource_group.region_02.name
network_security_group_name = azurerm_network_security_group.region_02_nsg_01.name
}
resource "azurerm_network_security_rule" "region_02_nsg_01_rule_02" {
name = "nsg01rule02-rdp"
priority = 1100
direction = "Inbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "3389"
source_address_prefix = "*"
destination_address_prefix = "*"
resource_group_name = azurerm_resource_group.region_02.name
network_security_group_name = azurerm_network_security_group.region_02_nsg_01.name
}
resource "azurerm_network_security_rule" "region_02_nsg_01_rule_03" {
name = "nsg01rule03-http"
priority = 1200
direction = "Inbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "80"
source_address_prefix = "*"
destination_address_prefix = "*"
resource_group_name = azurerm_resource_group.region_02.name
network_security_group_name = azurerm_network_security_group.region_02_nsg_01.name
}