Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate out HTTPS and HTTP security rule
Browse files Browse the repository at this point in the history
halprin committed Feb 19, 2024
1 parent 2dc4fa9 commit 891e7f4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion operations/template/net.tf
Original file line number Diff line number Diff line change
@@ -78,7 +78,22 @@ resource "azurerm_network_security_rule" "allow_http_from_everywhere" {
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "80,443"
destination_port_range = "80"
source_address_prefix = "*"
destination_address_prefix = "*"
}

resource "azurerm_network_security_rule" "allow_https_from_everywhere" {
resource_group_name = data.azurerm_resource_group.group.name
network_security_group_name = data.azurerm_network_security_group.security_group.name

name = "AllowHTTPSTraffic"
direction = "Inbound"
priority = 120
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "443"
source_address_prefix = "*"
destination_address_prefix = "*"
}

0 comments on commit 891e7f4

Please sign in to comment.