azurerm_dns_cname_record

    0

    0

    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

    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"]
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.