-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdns.tf
More file actions
executable file
·17 lines (16 loc) · 775 Bytes
/
Copy pathdns.tf
File metadata and controls
executable file
·17 lines (16 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Create DNS A record to VM in parent Resource group, this is set in the general resource group which will not get destroyed by destroying another instance of velo
resource "azurerm_dns_a_record" "dnsrecord" {
name = random_string.random.result
zone_name = var.dns_domain
resource_group_name = var.mgmt-rg
ttl = 300
records = [azurerm_public_ip.myterraformpublicip.ip_address]
}
# Create DNS record for the gui interface
resource "azurerm_dns_a_record" "gui_dnsrecord" {
name = "gui.${random_string.random.result}"
zone_name = var.dns_domain
resource_group_name = var.mgmt-rg
ttl = 300
records = [azurerm_public_ip.myterraformpublicip.ip_address]
}