diff --git a/environments/shared-services/main.tf b/environments/shared-services/main.tf index 2fe3685..870ba5c 100644 --- a/environments/shared-services/main.tf +++ b/environments/shared-services/main.tf @@ -7,6 +7,7 @@ module "network_transit_hub" { environment = var.environment region = var.region address_space = var.address_space + dns_servers = concat(var.private_ip_address_adds, ["168.63.129.16"]) address_prefix_vgw = var.address_prefix_vgw address_prefix_fw = var.address_prefix_fw tags = var.tags @@ -34,6 +35,12 @@ module "boot_diag_storage" { tags = var.tags } +module "audit_logs" { + source = "../../modules/audit_logs" + environment = var.environment + region = var.region +} + module "windows_jumpbox" { source = "../../modules/windows_jumpbox" environment = var.environment diff --git a/modules/network_transit_hub/main.tf b/modules/network_transit_hub/main.tf index 1f405ef..18019a9 100644 --- a/modules/network_transit_hub/main.tf +++ b/modules/network_transit_hub/main.tf @@ -21,6 +21,7 @@ module "virtual_network" { environment = var.environment name_prefix = "vnet-transit-hub" address_space = var.address_space + dns_servers = var.dns_servers tags = var.tags } diff --git a/modules/network_transit_hub/variables.tf b/modules/network_transit_hub/variables.tf index 0b8729c..f144a35 100644 --- a/modules/network_transit_hub/variables.tf +++ b/modules/network_transit_hub/variables.tf @@ -21,6 +21,12 @@ variable "address_space" { type = list } +variable "dns_servers" { + description = "(Optional) List of IP addresses of DNS servers" + type = list + default = null +} + variable "address_prefix_vgw" { description = "The address prefixe to use for the vgw subnet." type = list