Created
July 4, 2021 01:42
-
-
Save xximjasonxx/c4df08ab3084761b1b8258b9b2226ff3 to your computer and use it in GitHub Desktop.
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
# create the resources | |
resource "azurerm_private_dns_a_record" "this" { | |
name = var.name | |
zone_name = var.zone_name | |
resource_group_name = var.rg_name | |
ttl = 300 | |
records = var.ip_records | |
} | |
# calling from main terraform file | |
module "private_storage_dns_a_record" { | |
source = "./modules/networking/dns/a_record" | |
depends_on = [ | |
module.private_dns, | |
module.private_storage | |
] | |
name = module.storage_account.account_name | |
rg_name = azurerm_resource_group.rg.name | |
zone_name = module.private_dns.zone_name | |
ip_records = [ module.private_storage.private_ip ] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment