resource "azurerm_dns_cname_record" "${MyResource}" {
         name = "example-name"
         zone_name = "\${azurerm_dns_zone.test.name}"
         resource_group_name = "\${azurerm_resource_group.test.name}"
         ttl = "300"
         records = ["contoso.com"]
      }
      Terraform language logo

      azurerm_dns_cname_record

      0

      0

      avatar
      lucycodes42
      Terraform snippets

      This code creates a DNS CNAME record for example.com that points to the zone test.name. The zone test.name is in the same resource group as the azurerm_resource_group.test.name. The record's ttl is set to 300 seconds (3 minutes). The records field specifies the list of records that the CNAME points to. The contoso.com record is included in this list.

      Shortcut: tf_azurerm_dns_cname_record

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.