Skip to content

Commit d0de209

Browse files
committed
feat(route53): add failover routing policy support
1 parent bf10d94 commit d0de209

File tree

12 files changed

+1169
-4
lines changed

12 files changed

+1169
-4
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.failover-record.js.snapshot/Route53FailoverRecordIntegDefaultTestDeployAssert3BE1FD33.assets.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.failover-record.js.snapshot/Route53FailoverRecordIntegDefaultTestDeployAssert3BE1FD33.template.json

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.failover-record.js.snapshot/cdk.out

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.failover-record.js.snapshot/failover-record.assets.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"Resources": {
3+
"HostedZoneDB99F866": {
4+
"Type": "AWS::Route53::HostedZone",
5+
"Properties": {
6+
"Name": "cdk.dev."
7+
}
8+
},
9+
"HealthCheckA1C381C7": {
10+
"Type": "AWS::Route53::HealthCheck",
11+
"Properties": {
12+
"HealthCheckConfig": {
13+
"FailureThreshold": 3,
14+
"FullyQualifiedDomainName": "example.com",
15+
"Inverted": false,
16+
"MeasureLatency": false,
17+
"Port": 80,
18+
"RequestInterval": 30,
19+
"ResourcePath": "/health",
20+
"Type": "HTTP"
21+
}
22+
}
23+
},
24+
"ARecordFailoverPrimary99B7E3AE": {
25+
"Type": "AWS::Route53::RecordSet",
26+
"Properties": {
27+
"Failover": "PRIMARY",
28+
"HealthCheckId": {
29+
"Ref": "HealthCheckA1C381C7"
30+
},
31+
"HostedZoneId": {
32+
"Ref": "HostedZoneDB99F866"
33+
},
34+
"Name": "failover.cdk.dev.",
35+
"ResourceRecords": [
36+
"1.2.3.4"
37+
],
38+
"SetIdentifier": "failover-primary",
39+
"TTL": "60",
40+
"Type": "A"
41+
}
42+
},
43+
"ARecordFailoverSecondaryD176C0A2": {
44+
"Type": "AWS::Route53::RecordSet",
45+
"Properties": {
46+
"Failover": "SECONDARY",
47+
"HostedZoneId": {
48+
"Ref": "HostedZoneDB99F866"
49+
},
50+
"Name": "failover.cdk.dev.",
51+
"ResourceRecords": [
52+
"5.6.7.8"
53+
],
54+
"SetIdentifier": "failover-secondary",
55+
"TTL": "60",
56+
"Type": "A"
57+
}
58+
}
59+
},
60+
"Parameters": {
61+
"BootstrapVersion": {
62+
"Type": "AWS::SSM::Parameter::Value<String>",
63+
"Default": "/cdk-bootstrap/hnb659fds/version",
64+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
65+
}
66+
},
67+
"Rules": {
68+
"CheckBootstrapVersion": {
69+
"Assertions": [
70+
{
71+
"Assert": {
72+
"Fn::Not": [
73+
{
74+
"Fn::Contains": [
75+
[
76+
"1",
77+
"2",
78+
"3",
79+
"4",
80+
"5"
81+
],
82+
{
83+
"Ref": "BootstrapVersion"
84+
}
85+
]
86+
}
87+
]
88+
},
89+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
90+
}
91+
]
92+
}
93+
}
94+
}

packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.failover-record.js.snapshot/integ.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)