-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy path10.mynsg.tf
32 lines (30 loc) · 1.1 KB
/
10.mynsg.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
resource "azurerm_network_security_group" "user20-nsg" {
name = "user20-nsg"
location = azurerm_resource_group.user20-rg.location
resource_group_name = azurerm_resource_group.user20-rg.name
security_rule {
name = "SSH"
priority = 1001
direction = "Inbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "22"
source_address_prefix = "211.45.60.5/32"
destination_address_prefix = "*"
}
security_rule {
name = "HTTP"
priority = 2001
direction = "Inbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "80"
source_address_prefix = "*"
destination_address_prefix = "*"
}
tags = {
environment = "Terraform Demo"
}
}