Skip to content

Commit b655e35

Browse files
committed
update code docu and fmt
1 parent 0b5cc2d commit b655e35

2 files changed

Lines changed: 24 additions & 15 deletions

File tree

main.tf

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
# DNS Zone
1+
/**
2+
* # dns
3+
*
4+
* This module manages Azure DNS Zones.
5+
*
6+
*/
7+
8+
/** DNS Zone */
29
resource "azurerm_dns_zone" "dns_zone" {
310
for_each = local.dns_zone
411

@@ -11,6 +18,7 @@ resource "azurerm_dns_zone" "dns_zone" {
1118
}
1219
}
1320

21+
/** Private DNS Zone */
1422
resource "azurerm_private_dns_zone" "private_dns_zone" {
1523
for_each = local.private_dns_zone
1624

@@ -23,7 +31,7 @@ resource "azurerm_private_dns_zone" "private_dns_zone" {
2331
}
2432
}
2533

26-
# A Records
34+
/** DNS A Records */
2735
resource "azurerm_dns_a_record" "dns_a_record" {
2836
for_each = local.dns_a_record
2937

@@ -38,7 +46,8 @@ resource "azurerm_dns_a_record" "dns_a_record" {
3846
tag => local.tags[tag]
3947
}
4048
}
41-
# alias records to azure resources
49+
50+
/** DNS Alias Records to Azure Resources */
4251
resource "azurerm_dns_a_record" "dns_a_target" {
4352
for_each = local.dns_a_target
4453

@@ -54,7 +63,7 @@ resource "azurerm_dns_a_record" "dns_a_target" {
5463
}
5564
}
5665

57-
# CNAME Records
66+
/** DNS CNAME Records */
5867
resource "azurerm_dns_cname_record" "dns_cname_record" {
5968
for_each = local.dns_cname_record
6069

variables.tf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@ variable "tags" {
99
}
1010
# resource definition
1111
variable "dns_zone" {
12-
type = any
13-
default = {}
12+
type = any
13+
default = {}
1414
description = "resource definition, default settings are defined within locals and merged with var settings"
1515
}
1616
variable "private_dns_zone" {
17-
type = any
18-
default = {}
17+
type = any
18+
default = {}
1919
description = "resource definition, default settings are defined within locals and merged with var settings"
2020
}
2121
variable "dns_a_record" {
22-
type = any
23-
default = {}
22+
type = any
23+
default = {}
2424
description = "resource definition, default settings are defined within locals and merged with var settings"
2525
}
2626
variable "dns_a_target" {
27-
type = any
28-
default = {}
27+
type = any
28+
default = {}
2929
description = "resource definition, default settings are defined within locals and merged with var settings"
3030
}
3131
variable "dns_cname_record" {
32-
type = any
33-
default = {}
32+
type = any
33+
default = {}
3434
description = "resource definition, default settings are defined within locals and merged with var settings"
3535
}
3636

@@ -39,7 +39,7 @@ locals {
3939
default = {
4040
tags = {}
4141
# resource definition
42-
dns_zone = {}
42+
dns_zone = {}
4343
private_dns_zone = {}
4444
dns_a_record = {
4545
ttl = "900"

0 commit comments

Comments
 (0)