This module manages the hashicorp/azurerm dns resources.
For more information see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs > dns
<-- This file is autogenerated, please do not change. -->
Name |
Version |
terraform |
>=1.5 |
azurerm |
>=3.72.0 |
Name |
Version |
azurerm |
>=3.72.0 |
Name |
Type |
azurerm_dns_a_record.dns_a_record |
resource |
azurerm_dns_cname_record.dns_cname_record |
resource |
azurerm_dns_mx_record.dns_mx_record |
resource |
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 |
Name |
Description |
Type |
Default |
Required |
dns_a_record |
resource definition, default settings are defined within locals and merged with var settings |
any |
{} |
no |
dns_cname_record |
resource definition, default settings are defined within locals and merged with var settings |
any |
{} |
no |
dns_mx_record |
resource definition, default settings are defined within locals and merged with var settings |
any |
{} |
no |
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 |
Name |
Description |
dns_a_record |
Outputs all attributes of resource_type. |
dns_cname_record |
Outputs all attributes of resource_type. |
dns_mx_record |
Outputs all attributes of resource_type. |
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 |
Minimal configuration to install the desired resources with the module
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 = {
"mms-github-plattform.com" = {
resource_group_name = "rg-mms-github"
}
}
private_dns_zone = {
"mms-github-privat-plattform.com" = {
resource_group_name = "rg-mms-github"
}
}
dns_a_record = {
"@" = {
resource_group_name = module.dns.dns_zone["mms-github-plattform.com"].resource_group_name
zone_name = module.dns.dns_zone["mms-github-plattform.com"].name
records = ["127.0.0.2"]
}
}
dns_cname_record = {
www = {
resource_group_name = module.dns.dns_zone["mms-github-plattform.com"].resource_group_name
zone_name = module.dns.dns_zone["mms-github-plattform.com"].name
record = module.dns.dns_a_record["@"].fqdn
}
}
dns_txt_record = {
dnsauth = {
resource_group_name = module.dns.dns_zone["mms-github-plattform.com"].resource_group_name
zone_name = module.dns.dns_zone["mms-github-plattform.com"].name
record = {
frontdoor = {
value = "frontdoor"
}
}
}
}
dns_mx_record = {
mail = {
resource_group_name = module.dns.dns_zone["mms-github-plattform.com"].resource_group_name
zone_name = module.dns.dns_zone["mms-github-plattform.com"].name
record = {
mail1 = {
preference = 10
exchange = "mail1.telekom-mms.com"
}
}
}
}
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
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 = {
"mms-github-plattform.com" = {
resource_group_name = "rg-mms-github"
soa_record = {
email = "telekom-mms.com"
}
tags = {
project = "mms-github"
environment = terraform.workspace
managed-by = "terraform"
}
}
}
private_dns_zone = {
"mms-github-privat-plattform.com" = {
resource_group_name = "rg-mms-github"
soa_record = {
email = "telekom-mms.com"
}
tags = {
project = "mms-github"
environment = terraform.workspace
managed-by = "terraform"
}
}
}
dns_a_record = {
"@" = {
resource_group_name = module.dns.dns_zone["mms-github-plattform.com"].resource_group_name
zone_name = module.dns.dns_zone["mms-github-plattform.com"].name
records = ["127.0.0.2"]
tags = {
project = "mms-github"
environment = terraform.workspace
managed-by = "terraform"
}
}
}
dns_cname_record = {
www = {
resource_group_name = module.dns.dns_zone["mms-github-plattform.com"].resource_group_name
zone_name = module.dns.dns_zone["mms-github-plattform.com"].name
record = module.dns.dns_a_record["@"].fqdn
tags = {
project = "mms-github"
environment = terraform.workspace
managed-by = "terraform"
}
}
}
dns_txt_record = {
dnsauth = {
resource_group_name = module.dns.dns_zone["mms-github-plattform.com"].resource_group_name
zone_name = module.dns.dns_zone["mms-github-plattform.com"].name
record = {
frontdoor = {
value = "frontdoor"
}
}
tags = {
project = "mms-github"
environment = terraform.workspace
managed-by = "terraform"
}
}
}
dns_mx_record = {
mail = {
resource_group_name = module.dns.dns_zone["mms-github-plattform.com"].resource_group_name
zone_name = module.dns.dns_zone["mms-github-plattform.com"].name
record = {
mail1 = {
preference = 10
exchange = "mail1.telekom-mms.com"
}
mail2 = {
preference = 20
exchange = "mail2.telekom-mms.com"
}
}
tags = {
project = "mms-github"
environment = terraform.workspace
managed-by = "terraform"
}
}
}
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"
}
}
}
}