2015-01-18 00:06:43 +00:00
|
|
|
template = {
|
2017-02-24 02:37:43 +00:00
|
|
|
"Resources": {
|
2015-01-18 00:06:43 +00:00
|
|
|
"HostedZone": {
|
2017-02-24 02:37:43 +00:00
|
|
|
"Type": "AWS::Route53::HostedZone",
|
|
|
|
"Properties": {"Name": "my_zone"},
|
2015-01-18 00:06:43 +00:00
|
|
|
},
|
|
|
|
"my_health_check": {
|
|
|
|
"Type": "AWS::Route53::HealthCheck",
|
2017-02-24 02:37:43 +00:00
|
|
|
"Properties": {
|
|
|
|
"HealthCheckConfig": {
|
|
|
|
"FailureThreshold": 3,
|
|
|
|
"IPAddress": "10.0.0.4",
|
|
|
|
"Port": 80,
|
|
|
|
"RequestInterval": 10,
|
|
|
|
"ResourcePath": "/",
|
|
|
|
"Type": "HTTP",
|
2015-01-18 00:06:43 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
2017-02-24 02:37:43 +00:00
|
|
|
"myDNSRecord": {
|
|
|
|
"Type": "AWS::Route53::RecordSet",
|
|
|
|
"Properties": {
|
2017-10-21 21:41:19 +00:00
|
|
|
"HostedZoneId": {"Ref": "HostedZone"},
|
2017-02-24 02:37:43 +00:00
|
|
|
"Comment": "DNS name for my instance.",
|
|
|
|
"Name": "my_record_set",
|
|
|
|
"Type": "A",
|
|
|
|
"TTL": "900",
|
|
|
|
"ResourceRecords": ["my.example.com"],
|
|
|
|
"HealthCheckId": {"Ref": "my_health_check"},
|
|
|
|
},
|
2015-01-18 00:06:43 +00:00
|
|
|
},
|
2019-10-31 15:44:26 +00:00
|
|
|
}
|
2017-02-24 02:37:43 +00:00
|
|
|
}
|