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.
|
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.
|
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. |