diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b8f02c..2b2323e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [2.0.1](https://github.com/telekom-mms/terraform-azurerm-dns/tree/2.0.1) (2023-09-14) +## [2.0.1](https://github.com/telekom-mms/terraform-azurerm-dns/tree/2.0.1) (2023-09-15) [Full Changelog](https://github.com/telekom-mms/terraform-azurerm-dns/compare/2.0.0...2.0.1) diff --git a/README.md b/README.md index 6f76f3e..cd0c373 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ _<-- This file is autogenerated, please do not change. -->_ | azurerm_dns_txt_record.dns_txt_record | resource | | azurerm_dns_zone.dns_zone | resource | | azurerm_private_dns_zone.private_dns_zone | resource | +| azurerm_private_dns_zone_virtual_network_link.private_dns_zone_virtual_network_link | resource | ## Inputs @@ -40,6 +41,7 @@ _<-- This file is autogenerated, please do not change. -->_ | dns_txt_record | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | | dns_zone | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | | private_dns_zone | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | +| private_dns_zone_virtual_network_link | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | ## Outputs @@ -51,6 +53,7 @@ _<-- This file is autogenerated, please do not change. -->_ | dns_txt_record | Outputs all attributes of resource_type. | | dns_zone | Outputs all attributes of resource_type. | | private_dns_zone | Outputs all attributes of resource_type. | +| private_dns_zone_virtual_network_link | Outputs all attributes of resource_type. | | variables | Displays all configurable variables passed by the module. __default__ = predefined values per module. __merged__ = result of merging the default values and custom values passed to the module | ## Examples @@ -58,6 +61,17 @@ _<-- This file is autogenerated, please do not change. -->_ Minimal configuration to install the desired resources with the module ```hcl +module "network" { + source = "registry.terraform.io/telekom-mms/network/azurerm" + virtual_network = { + vn-app-mms = { + location = "westeurope" + resource_group_name = "rg-mms-github" + address_space = ["173.0.0.0/23"] + } + } +} + module "dns" { source = "registry.terraform.io/telekom-mms/dns/azurerm" dns_zone = { @@ -107,12 +121,30 @@ module "dns" { } } } + private_dns_zone_virtual_network_link = { + pl-mms-github = { + resource_group_name = "rg-mms-github" + private_dns_zone_name = module.dns.private_dns_zone["mms-github-privat-plattform.com"].name + virtual_network_id = module.network.virtual_network["vn-app-mms"].id + } + } } ``` Advanced configuration to install the desired resources with the module ```hcl +module "network" { + source = "registry.terraform.io/telekom-mms/network/azurerm" + virtual_network = { + vn-app-mms = { + location = "westeurope" + resource_group_name = "rg-mms-github" + address_space = ["173.0.0.0/23"] + } + } +} + module "dns" { source = "registry.terraform.io/telekom-mms/dns/azurerm" dns_zone = { @@ -202,6 +234,18 @@ module "dns" { } } } + private_dns_zone_virtual_network_link = { + pl-mms-github = { + resource_group_name = "rg-mms-github" + private_dns_zone_name = module.dns.private_dns_zone["mms-github-privat-plattform.com"].name + virtual_network_id = module.network.virtual_network["vn-app-mms"].id + tags = { + project = "mms-github" + environment = terraform.workspace + managed-by = "terraform" + } + } + } } ```