Skip to content

Commit

Permalink
fix: lacework-global-534
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Murray <[email protected]>
  • Loading branch information
dmurray-lacework committed Jan 31, 2024
1 parent f9f643e commit f7e8c10
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -220,3 +220,33 @@ data "lacework_metric_module" "lwmetrics" {
name = local.module_name
version = local.module_version
}

# virtual network and subnet
resource "azurerm_virtual_network" "lacework" {
name = "lacework-vnet"
address_space = ["10.0.0.0/16"]
location = azurerm_resource_group.lacework.location
resource_group_name = azurerm_resource_group.lacework.name
}

resource "azurerm_subnet" "lacework" {
name = "lacework-subnet"
resource_group_name = azurerm_resource_group.lacework.name
virtual_network_name = azurerm_virtual_network.lacework.name
address_prefixes = ["10.0.1.0/24"]
}

resource "azurerm_private_endpoint" "lacework" {
name = "lacework-private-endpoint"
location = azurerm_resource_group.lacework[0].location
resource_group_name = azurerm_resource_group.lacework[0].name
subnet_id = azurerm_subnet.lacework.id

private_service_connection {
name = "lacework-privateserviceconnection"
is_manual_connection = false
private_connection_resource_id = local.storage_account_id
//subresource_names = ["example"]
}
}

0 comments on commit f7e8c10

Please sign in to comment.