aws::route53-record-set

Creates a record set in the given hosted zone.

Example

aws::route53-record-set record-set-example
    hosted-zone: $(aws::route53-hosted-zone hosted-zone-record-set-example)
    name: "record-set-example."
    type: "A"
    ttl: 300
    records: [
        "192.0.2.235",
        "192.0.2.236"
    ]
    failover: "secondary"
    set-identifier: "set_id"
    routing-policy: "failover"
    health-check: $(aws::route53-health-check health-check-record-set-example-calculated)
end
aws::route53-record-set record-set-geolocation-example
    hosted-zone: $(aws::route53-hosted-zone hosted-zone-record-set-example)
    name: "record-set-geolocation-example."
    type: "A"
    ttl: 300
    records: [
        "192.0.2.235",
        "192.0.2.236"
    ]
    set-identifier: "set_id"
    routing-policy: "geolocation"

    geolocation
        country-code: 'US'
    end
end
aws::route53-record-set record-set-alias-example
    hosted-zone: $(aws::route53-hosted-zone hosted-zone-record-set-example)
    name: "record-set-alias-example."
    type: "A"

    alias
        hosted-zone-id: $(aws::load-balancer elb).hosted-zone-id
        evaluate-target-health: false
        dns-name: $(aws::load-balancer elb).*.dns-name
    end
end

Attributes

Attribute Description
alias subresource

The alias target of the record.

dns-name
Dns name to associate with this Record Set. (Required)
hosted-zone-id
The Hosted Zone where the ‘dns name’ belongs as configured. (Required)
evaluate-target-health
Enable target health evaluation with this Record Set. (Required)
comment A comment when creating/updating/deleting a Record Set.
failover The failover value. Required if ‘route policy’ set to failover. Valid values are Primary or Secondary.
geolocation subresource

The geolocation configuration of the record.

continent-code
The continent code. At least one of continent code, country code or subdivision code is required.
country-code
The country code. At least one of continent code, country code or subdivision code is required.
subdivision-code
The sub division code. At least one of continent code, country code or subdivision code is required.
hosted-zone The Hosted Zone under which the the Record Set is to be created. (Required)
health-check The health check to be associated with the Record Set. Required if ‘failover’ is set to primary.
multi-value-answer Needs to be enabled if Routing Policy is multivalue. Required if ‘route policy’ set to multivalue.
name The name of the Record Set being created. (Required)
region The region where the records mentioned resides. Required if ‘route policy’ set to latency.
set-identifier A set identifier that differentiates this from other Record Set of the same type and Routing Policy. Required if ‘enable alias’ is set to false.
traffic-policy-instance The Traffic Policy instance to be associated with the record set.
ttl The resource record cache time to live. Required if ‘enable alias’ is set to false. Valid values are between 0 to 172800.
type The type of Record Set being created. Valid values are SOA, A, TXT, NS, CNAME, MX, NAPTR, PTR, SRV, SPF, AAAA or CAA. (Required)
weight The weight value determines the probability of a Record Set being selected. Required if ‘route policy’ set to weighted. Valid values are between 0 to 255.
records set A list of ip addresses for the Record Set. Required if ‘enable alias’ is set to false.
routing-policy Routing policy type the Record Set is going to be. Defaults to Simple. Valid values are geolocation, failover, multivalue, weighted, latency or simple.

Outputs

Attribute Description
id The ID of the Record Set.