-
Notifications
You must be signed in to change notification settings - Fork 2
/
qs_securitygroups.tf
33 lines (31 loc) · 1.32 KB
/
qs_securitygroups.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
resource "azurerm_network_security_group" "qlikSense_nsg" {
name = "qlikSense_nsg"
location = "${azurerm_resource_group.qlikSense.location}"
resource_group_name = "${azurerm_resource_group.qlikSense.name}"
}
resource "azurerm_network_security_rule" "https" {
name = "https"
priority = 100
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.qlikSense.name}"
network_security_group_name = "${azurerm_network_security_group.qlikSense_nsg.name}"
}
resource "azurerm_network_security_rule" "rdp" {
name = "rdp"
priority = 200
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.qlikSense.name}"
network_security_group_name = "${azurerm_network_security_group.qlikSense_nsg.name}"
}