Skip to content

Commit 01f9b06

Browse files
committed
feat(route53-patterns): HttpsRedirect use Distribution as the default CloudFront distribution (under feature flag)
1 parent eb5e688 commit 01f9b06

18 files changed

+362
-512
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.js.snapshot/cdk.out

Lines changed: 1 addition & 1 deletion
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-patterns/test/integ.hosted-redirect-same-region.js.snapshot/integ-https-redirect-same-region.assets.json

Lines changed: 4 additions & 3 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-patterns/test/integ.hosted-redirect-same-region.js.snapshot/integ-https-redirect-same-region.template.json

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"UpdateReplacePolicy": "Delete",
4646
"DeletionPolicy": "Delete"
4747
},
48-
"redirectRedirectDistributionCFDistribution1A4C48E3": {
48+
"redirectRedirectDistribution5423F951": {
4949
"Type": "AWS::CloudFront::Distribution",
5050
"Properties": {
5151
"DistributionConfig": {
@@ -54,22 +54,9 @@
5454
],
5555
"Comment": "Redirect to aws.amazon.com from integ-same-region.example.com",
5656
"DefaultCacheBehavior": {
57-
"AllowedMethods": [
58-
"GET",
59-
"HEAD"
60-
],
61-
"CachedMethods": [
62-
"GET",
63-
"HEAD"
64-
],
57+
"CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
6558
"Compress": true,
66-
"ForwardedValues": {
67-
"Cookies": {
68-
"Forward": "none"
69-
},
70-
"QueryString": false
71-
},
72-
"TargetOriginId": "origin1",
59+
"TargetOriginId": "integhttpsredirectsameregionredirectRedirectDistributionOrigin1609D30F4",
7360
"ViewerProtocolPolicy": "redirect-to-https"
7461
},
7562
"DefaultRootObject": "",
@@ -78,14 +65,8 @@
7865
"IPV6Enabled": true,
7966
"Origins": [
8067
{
81-
"ConnectionAttempts": 3,
82-
"ConnectionTimeout": 10,
8368
"CustomOriginConfig": {
84-
"HTTPPort": 80,
85-
"HTTPSPort": 443,
86-
"OriginKeepaliveTimeout": 5,
8769
"OriginProtocolPolicy": "http-only",
88-
"OriginReadTimeout": 30,
8970
"OriginSSLProtocols": [
9071
"TLSv1.2"
9172
]
@@ -106,14 +87,15 @@
10687
}
10788
]
10889
},
109-
"Id": "origin1"
90+
"Id": "integhttpsredirectsameregionredirectRedirectDistributionOrigin1609D30F4"
11091
}
11192
],
11293
"PriceClass": "PriceClass_All",
11394
"ViewerCertificate": {
11495
"AcmCertificateArn": {
11596
"Ref": "redirectRedirectCertificateD6C59F7F"
11697
},
98+
"MinimumProtocolVersion": "TLSv1.2_2021",
11799
"SslSupportMethod": "sni-only"
118100
}
119101
}
@@ -122,12 +104,10 @@
122104
"redirectRedirectAliasRecorde7728a9F2A656C": {
123105
"Type": "AWS::Route53::RecordSet",
124106
"Properties": {
125-
"Name": "integ-same-region.example.com.",
126-
"Type": "A",
127107
"AliasTarget": {
128108
"DNSName": {
129109
"Fn::GetAtt": [
130-
"redirectRedirectDistributionCFDistribution1A4C48E3",
110+
"redirectRedirectDistribution5423F951",
131111
"DomainName"
132112
]
133113
},
@@ -141,18 +121,18 @@
141121
]
142122
}
143123
},
144-
"HostedZoneId": "Z23ABC4XYZL05B"
124+
"HostedZoneId": "Z23ABC4XYZL05B",
125+
"Name": "integ-same-region.example.com.",
126+
"Type": "A"
145127
}
146128
},
147129
"redirectRedirectAliasRecordSixe7728a9391F03E": {
148130
"Type": "AWS::Route53::RecordSet",
149131
"Properties": {
150-
"Name": "integ-same-region.example.com.",
151-
"Type": "AAAA",
152132
"AliasTarget": {
153133
"DNSName": {
154134
"Fn::GetAtt": [
155-
"redirectRedirectDistributionCFDistribution1A4C48E3",
135+
"redirectRedirectDistribution5423F951",
156136
"DomainName"
157137
]
158138
},
@@ -166,7 +146,9 @@
166146
]
167147
}
168148
},
169-
"HostedZoneId": "Z23ABC4XYZL05B"
149+
"HostedZoneId": "Z23ABC4XYZL05B",
150+
"Name": "integ-same-region.example.com.",
151+
"Type": "AAAA"
170152
}
171153
}
172154
},

packages/@aws-cdk-testing/framework-integ/test/aws-route53-patterns/test/integ.hosted-redirect-same-region.js.snapshot/integ.json

Lines changed: 1 addition & 1 deletion
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-patterns/test/integ.hosted-redirect-same-region.js.snapshot/integtestDefaultTestDeployAssert24D5C536.assets.json

Lines changed: 2 additions & 1 deletion
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-patterns/test/integ.hosted-redirect-same-region.js.snapshot/manifest.json

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

0 commit comments

Comments
 (0)