Skip to content

Commit

Permalink
configure public domain name for Azure hosts
Browse files Browse the repository at this point in the history
 -Implemented the configuration of public domain names for Azure hosts using Terraform

Signed-off-by: karim mdmirajul <[email protected]>
  • Loading branch information
karim20230 committed Nov 8, 2023
1 parent 3e61c6e commit 6286e62
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions terraform/azure-ghaf-infra.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ resource "azurerm_network_security_group" "ghaf_infra_tf_nsg" {
destination_address_prefix = "*"
}
}

resource "azurerm_dns_a_record" "ghafinfra_tf_dns" {
name = "ghafinfratf"
zone_name = "swedencentral.cloudapp.azure.com"
resource_group_name = azurerm_resource_group.ghaf_infra_tf_dev.name
ttl = 300
records = [azurerm_public_ip.ghaf_infra_tf_public_ip.ip_address]
}


# Example Linux Virtual Machine
resource "azurerm_linux_virtual_machine" "ghafinfra_tf" {
name = "ghafinfratf"
Expand Down

0 comments on commit 6286e62

Please sign in to comment.