Skip to main content
Providers

RecordSet

A resource of the AWS provider, version 0.3.0, in its DNS group. Import it with:

import RecordSet from "aws/dns"

Example

resource RecordSet example {
    hostedZoneId     = "example-value"
    name             = "example-value"
    type             = "A"
    ttl              = 3.14
    records          = "..."
    aliasTarget      = "..."
    weight           = 3.14
    setIdentifier    = "example-value"
    failover         = "PRIMARY"
    geoLocation      = "..."
    healthCheckId    = "example-value"
    multiValueAnswer = true
}

Properties

Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.

NameTypeDefaultRequiredDescription
hostedZoneIdstring—NoThe ID of the hosted zone
namestring—NoThe name of the record (fully qualified domain name)
typestring—NoThe DNS record type Allowed: "A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "SRV", "CAA", "PTR"
ttlnumber—NoThe TTL (time to live) in seconds
recordsany[]—NoThe record values
aliasTargetany—NoAlias target for AWS resources (ELB, CloudFront, S3, etc.)
weightnumber—NoWeighted routing weight (0-255)
setIdentifierstring—NoSet identifier for routing policies
failoverstring—NoFailover routing type Allowed: "PRIMARY", "SECONDARY"
geoLocationany—NoGeolocation routing configuration
healthCheckIdstring—NoHealth check ID to associate with the record
multiValueAnswerboolean—NoWhether this is a multivalue answer record

On this page