Add route53 health checks.
This commit is contained in:
parent
adb26986eb
commit
585ef7b768
7 changed files with 277 additions and 5 deletions
39
tests/test_cloudformation/fixtures/route53_health_check.py
Normal file
39
tests/test_cloudformation/fixtures/route53_health_check.py
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
template = {
|
||||
"Resources" : {
|
||||
"HostedZone": {
|
||||
"Type" : "AWS::Route53::HostedZone",
|
||||
"Properties" : {
|
||||
"Name" : "my_zone"
|
||||
}
|
||||
},
|
||||
|
||||
"my_health_check": {
|
||||
"Type": "AWS::Route53::HealthCheck",
|
||||
"Properties" : {
|
||||
"HealthCheckConfig" : {
|
||||
"FailureThreshold" : 3,
|
||||
"IPAddress" : "10.0.0.4",
|
||||
"Port" : 80,
|
||||
"RequestInterval" : 10,
|
||||
"ResourcePath" : "/",
|
||||
"Type" : "HTTP",
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"myDNSRecord" : {
|
||||
"Type" : "AWS::Route53::RecordSet",
|
||||
"Properties" : {
|
||||
"HostedZoneName" : { "Ref" : "HostedZone" },
|
||||
"Comment" : "DNS name for my instance.",
|
||||
"Name" : "my_record_set",
|
||||
"Type" : "A",
|
||||
"TTL" : "900",
|
||||
"ResourceRecords" : ["my.example.com"],
|
||||
"HealthCheckId": {"Ref": "my_health_check"},
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue