Skip to content

Commit

Permalink
Terraform fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Mar 2, 2024
1 parent 4ea6a61 commit f503256
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions operations/template/net.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ resource "azurerm_network_security_group" "db_security_group" {
}

resource "azurerm_route_table" "database" {
name = "database-route-table"
location = data.azurerm_resource_group.group.location
resource_group_name = data.azurerm_resource_group.group.name
name = "database-route-table"
location = data.azurerm_resource_group.group.location
resource_group_name = data.azurerm_resource_group.group.name
}

resource "azurerm_route" "entra_internet" {
name = "entra_internet"
resource_group_name = data.azurerm_resource_group.group.name
name = "entra_internet"
resource_group_name = data.azurerm_resource_group.group.name
route_table_name = azurerm_route_table.database.name
address_prefix = "AzureActiveDirectory"
next_hop_type = "Internet"
Expand All @@ -105,7 +105,7 @@ resource "azurerm_network_security_rule" "DB_Splunk_UF_omhsinf" {
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "9997-9998"
source_address_prefixes = ["10.65.8.211/32","10.65.8.212/32","10.65.7.212/32","10.65.7.211/32","10.65.8.210/32","10.65.7.210/32"]
source_address_prefixes = ["10.65.8.211/32", "10.65.8.212/32", "10.65.7.212/32", "10.65.7.211/32", "10.65.8.210/32", "10.65.7.210/32"]
destination_address_prefix = "*"
resource_group_name = data.azurerm_resource_group.group.name
network_security_group_name = azurerm_network_security_group.db_security_group.name
Expand Down Expand Up @@ -147,8 +147,8 @@ resource "azurerm_network_security_rule" "DB_ForeScout_Manager_omhsinf" {
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_ranges = ["556","443","10003-10006"]
source_address_prefixes = ["10.64.8.184","10.64.8.180/32"]
destination_port_ranges = ["556", "443", "10003-10006"]
source_address_prefixes = ["10.64.8.184", "10.64.8.180/32"]
destination_address_prefix = "*"
resource_group_name = data.azurerm_resource_group.group.name
network_security_group_name = azurerm_network_security_group.db_security_group.name
Expand All @@ -175,7 +175,7 @@ resource "azurerm_network_security_rule" "DB_Allow_All_Out_omhsinf" {
access = "Allow"
protocol = "*"
source_port_range = "*"
destination_port_range = "*"
destination_port_range = "*"
source_address_prefix = "*"
destination_address_prefix = "*"
resource_group_name = data.azurerm_resource_group.group.name
Expand All @@ -193,7 +193,6 @@ resource "azurerm_network_security_group" "app_security_group" {
resource_group_name = data.azurerm_resource_group.group.name
}


resource "azurerm_network_security_rule" "App_Splunk_UF_omhsinf" {
name = "Splunk_UF_omhsinf"
priority = 103
Expand All @@ -202,7 +201,7 @@ resource "azurerm_network_security_rule" "App_Splunk_UF_omhsinf" {
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "9997-9998"
source_address_prefixes = ["10.65.8.211/32","10.65.8.212/32","10.65.7.212/32","10.65.7.211/32","10.65.8.210/32","10.65.7.210/32"]
source_address_prefixes = ["10.65.8.211/32", "10.65.8.212/32", "10.65.7.212/32", "10.65.7.211/32", "10.65.8.210/32", "10.65.7.210/32"]
destination_address_prefix = "*"
resource_group_name = data.azurerm_resource_group.group.name
network_security_group_name = azurerm_network_security_group.app_security_group.name
Expand Down Expand Up @@ -244,8 +243,8 @@ resource "azurerm_network_security_rule" "App_ForeScout_Manager_omhsinf" {
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_ranges = ["556","443","10003-10006"]
source_address_prefixes = ["10.64.8.184","10.64.8.180/32"]
destination_port_ranges = ["556", "443", "10003-10006"]
source_address_prefixes = ["10.64.8.184", "10.64.8.180/32"]
destination_address_prefix = "*"
resource_group_name = data.azurerm_resource_group.group.name
network_security_group_name = azurerm_network_security_group.app_security_group.name
Expand All @@ -272,7 +271,7 @@ resource "azurerm_network_security_rule" "App_Allow_All_Out_omhsinf" {
access = "Allow"
protocol = "*"
source_port_range = "*"
destination_port_range = "*"
destination_port_range = "*"
source_address_prefix = "*"
destination_address_prefix = "*"
resource_group_name = data.azurerm_resource_group.group.name
Expand Down

0 comments on commit f503256

Please sign in to comment.