generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Added comments and updates example folder hierarchy
- Loading branch information
Showing
8 changed files
with
211 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
##----------------------------------------------------------------------------- | ||
## DNS zone module call | ||
## Below module will deploy public dns in azure. | ||
##----------------------------------------------------------------------------- | ||
module "dns_zone" { | ||
depends_on = [module.resource_group, module.vnet] | ||
source = "../.." | ||
name = "app" | ||
environment = "test" | ||
resource_group_name = "test-rg" | ||
dns_zone_names = "example.com" | ||
private_registration_enabled = false | ||
private_dns = false | ||
private_dns_zone_name = "" | ||
virtual_network_id = "/subscriptions/---------------------------" | ||
a_records = [{ | ||
name = "test" | ||
ttl = 3600 | ||
records = ["10.0.180.17", "10.0.180.18"] | ||
}, | ||
{ | ||
name = "test2" | ||
ttl = 3600 | ||
records = ["10.0.180.17", "10.0.180.18"] | ||
}] | ||
|
||
cname_records = [{ | ||
name = "test1" | ||
ttl = 3600 | ||
record = "example.com" | ||
}] | ||
|
||
ns_records = [{ | ||
name = "test2" | ||
ttl = 3600 | ||
records = ["ns1.example.com.", "ns2.example.com."] | ||
}] | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
output "dns_zone_id" { | ||
description = "The DNS Zone ID." | ||
value = module.dns_zone.dns_zone_id | ||
} | ||
|
||
output "dns_zone_number_of_record_sets" { | ||
description = "The number of records already in the zone." | ||
value = module.dns_zone.dns_zone_number_of_record_sets | ||
} | ||
|
||
output "dns_zone_name_servers" { | ||
description = " A list of values that make up the NS record for the zone." | ||
value = module.dns_zone.dns_zone_name_servers | ||
} | ||
|
||
output "dns_zone_max_number_of_record_sets" { | ||
description = " Maximum number of Records in the zone. Defaults to 1000." | ||
value = module.dns_zone.dns_zone_max_number_of_record_sets | ||
} | ||
|
||
output "private_dns_zone_id" { | ||
description = "The Private DNS Zone ID." | ||
value = module.dns_zone.private_dns_zone_id | ||
} | ||
|
||
output "private_dns_zone_number_of_record_sets" { | ||
description = "The current number of record sets in this Private DNS zone." | ||
value = module.dns_zone.private_dns_zone_number_of_record_sets | ||
} | ||
|
||
output "private_dns_zone_max_number_of_record_sets" { | ||
description = "The maximum number of record sets that can be created in this Private DNS zone." | ||
value = module.dns_zone.private_dns_zone_max_number_of_record_sets | ||
} | ||
|
||
output "private_dns_zone_max_number_of_virtual_network_links" { | ||
description = "The maximum number of virtual networks that can be linked to this Private DNS zone." | ||
value = module.dns_zone.private_dns_zone_max_number_of_virtual_network_links | ||
} | ||
|
||
output "private_dns_zone_max_number_of_virtual_network_links_with_registration" { | ||
description = "The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled." | ||
value = module.dns_zone.private_dns_zone_max_number_of_virtual_network_links_with_registration | ||
} | ||
|
||
output "private_dns_zone_virtual_network_link_id" { | ||
description = "The ID of the Private DNS Zone Virtual Network Link." | ||
value = module.dns_zone.private_dns_zone_virtual_network_link_id | ||
} | ||
|
||
output "dns_a_record_id" { | ||
description = " The DNS A Record ID." | ||
value = module.dns_zone.dns_a_record_id | ||
} | ||
|
||
output "dns_a_record_fqdn" { | ||
description = "The FQDN of the DNS A Record." | ||
value = module.dns_zone.dns_a_record_fqdn | ||
} | ||
|
||
output "dns_cname_record_id" { | ||
description = " The DNS CNAME Record ID." | ||
value = module.dns_zone.dns_cname_record_id | ||
} | ||
|
||
output "dns_cname_record_fqdn" { | ||
description = "The FQDN of the DNS CNAME Record." | ||
value = module.dns_zone.dns_cname_record_fqdn | ||
} | ||
|
||
output "dns_ns_record_id" { | ||
description = " The DNS NS Record ID." | ||
value = module.dns_zone.dns_ns_record_id | ||
} | ||
|
||
output "dns_ns_record_fqdn" { | ||
description = "The FQDN of the DNS NS Record." | ||
value = module.dns_zone.dns_ns_record_fqdn | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters