-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1690840
commit 382cbb2
Showing
11 changed files
with
276 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
resource "azurerm_virtual_network" "az_openai_vnet" { | ||
name = var.virtual_network_name | ||
location = var.location | ||
resource_group_name = var.resource_group_name | ||
address_space = var.vnet_address_space | ||
tags = var.tags | ||
} | ||
|
||
# Azure Virtual Network Subnets | ||
resource "azurerm_subnet" "az_openai_subnet" { | ||
for_each = { for each in var.subnet_config : each.subnet_name => each } | ||
|
||
resource_group_name = var.resource_group_name | ||
virtual_network_name = azurerm_virtual_network.az_openai_vnet.name | ||
name = each.value.subnet_name | ||
address_prefixes = each.value.subnet_address_space | ||
service_endpoints = each.value.service_endpoints | ||
private_link_service_network_policies_enabled = each.value.private_link_service_network_policies_enabled | ||
private_endpoint_network_policies_enabled = each.value.private_endpoint_network_policies_enabled | ||
|
||
dynamic "delegation" { | ||
for_each = each.value.subnets_delegation_settings | ||
content { | ||
name = delegation.key | ||
dynamic "service_delegation" { | ||
for_each = toset(delegation.value) | ||
content { | ||
name = service_delegation.value.name | ||
actions = service_delegation.value.actions | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# # Key Vault - Create Key Vault to save cognitive account details | ||
# resource "azurerm_key_vault" "az_openai_kv" { | ||
# resource_group_name = var.resource_group_name | ||
# location = var.location | ||
# #values from variable kv_config object | ||
# name = lower(var.kv_name) | ||
# sku_name = var.kv_sku | ||
# enable_rbac_authorization = true | ||
# tenant_id = data.azurerm_client_config.current.tenant_id | ||
# dynamic "network_acls" { | ||
# for_each = local.kv_net_rules | ||
# content { | ||
# default_action = network_acls.value.default_action | ||
# bypass = network_acls.value.bypass | ||
# ip_rules = network_acls.value.ip_rules | ||
# virtual_network_subnet_ids = network_acls.value.virtual_network_subnet_ids | ||
# } | ||
# } | ||
# tags = var.tags | ||
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters