Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (27 sloc) 813 Bytes
resource "azurerm_network_security_group" "terraform_network_security_group_web" {
name = "terraform_network_security_group_web"
location = "${var.location}"
resource_group_name = "${azurerm_resource_group.terraform_rg.name}"
security_rule {
name = "SSH"
priority = 1000
direction = "Inbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "22"
source_address_prefix = "*"
destination_address_prefix = "*"
}
security_rule {
name = "AllowHTTP"
priority= 2000
direction= "Inbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "80"
source_address_prefix = "Internet"
destination_address_prefix = "*"
}
}
You can’t perform that action at this time.