Skip to content

Commit 0ee9c5c

Browse files
updated files
1 parent 5c0db3c commit 0ee9c5c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

main.tf

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ module "resource_names" {
2727
use_azure_region_abbr = var.use_azure_region_abbr
2828
}
2929

30+
module "resource_names" {
31+
source = "terraform.registry.launch.nttdata.com/module_library/resource_name/launch"
32+
version = "~> 2.0"
33+
34+
for_each = var.resource_names_map
35+
36+
region = join("", split("-", var.location))
37+
class_env = var.environment
38+
cloud_resource_type = each.value.name
39+
instance_env = var.environment_number
40+
instance_resource = var.resource_number
41+
maximum_length = each.value.max_length
42+
logical_product_family = var.logical_product_family
43+
logical_product_service = var.logical_product_service
44+
use_azure_region_abbr = var.use_azure_region_abbr
45+
}
46+
3047
module "resource_group" {
3148
source = "terraform.registry.launch.nttdata.com/module_primitive/resource_group/azurerm"
3249
version = "~> 1.0"
@@ -115,7 +132,7 @@ module "private_endpoint" {
115132
region = var.location
116133
subnet_id = var.subnet_id
117134
private_dns_zone_group_name = var.private_dns_zone_group_name
118-
private_dns_zone_ids = var.private_dns_zone_ids[0]
135+
private_dns_zone_id = var.private_dns_zone_ids[0]
119136
is_manual_connection = var.is_manual_connection
120137
private_connection_resource_id = module.postgresql_server.id
121138
subresource_names = var.subresource_names

0 commit comments

Comments
 (0)