-
Notifications
You must be signed in to change notification settings - Fork 4.1k
feat(route53-patterns): HttpsRedirect
use Distribution
as the default CloudFront distribution (under feature flag)
#34312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -45,7 +45,7 @@ | |||||||
"UpdateReplacePolicy": "Delete", | ||||||||
"DeletionPolicy": "Delete" | ||||||||
}, | ||||||||
"redirectRedirectDistributionCFDistribution1A4C48E3": { | ||||||||
"redirectRedirectDistribution5423F951": { | ||||||||
"Type": "AWS::CloudFront::Distribution", | ||||||||
"Properties": { | ||||||||
"DistributionConfig": { | ||||||||
|
@@ -54,22 +54,9 @@ | |||||||
], | ||||||||
"Comment": "Redirect to aws.amazon.com from integ-same-region.example.com", | ||||||||
"DefaultCacheBehavior": { | ||||||||
"AllowedMethods": [ | ||||||||
"GET", | ||||||||
"HEAD" | ||||||||
], | ||||||||
"CachedMethods": [ | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aws-cdk/packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts Lines 1058 to 1060 in db62c5f
|
||||||||
"GET", | ||||||||
"HEAD" | ||||||||
], | ||||||||
"CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6", | ||||||||
"Compress": true, | ||||||||
"ForwardedValues": { | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||||
"Cookies": { | ||||||||
"Forward": "none" | ||||||||
}, | ||||||||
"QueryString": false | ||||||||
}, | ||||||||
"TargetOriginId": "origin1", | ||||||||
"TargetOriginId": "integhttpsredirectsameregionredirectRedirectDistributionOrigin1609D30F4", | ||||||||
"ViewerProtocolPolicy": "redirect-to-https" | ||||||||
}, | ||||||||
"DefaultRootObject": "", | ||||||||
|
@@ -78,14 +65,8 @@ | |||||||
"IPV6Enabled": true, | ||||||||
"Origins": [ | ||||||||
{ | ||||||||
"ConnectionAttempts": 3, | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aws-cdk/packages/aws-cdk-lib/aws-cloudfront/lib/origin.ts Lines 91 to 93 in db62c5f
|
||||||||
"ConnectionTimeout": 10, | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aws-cdk/packages/aws-cdk-lib/aws-cloudfront/lib/origin.ts Lines 84 to 86 in db62c5f
|
||||||||
"CustomOriginConfig": { | ||||||||
"HTTPPort": 80, | ||||||||
"HTTPSPort": 443, | ||||||||
"OriginKeepaliveTimeout": 5, | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aws-cdk/packages/aws-cdk-lib/aws-cloudfront-origins/lib/vpc-origin.ts Lines 36 to 38 in db62c5f
|
||||||||
"OriginProtocolPolicy": "http-only", | ||||||||
"OriginReadTimeout": 30, | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. aws-cdk/packages/aws-cdk-lib/aws-cloudfront-origins/lib/vpc-origin.ts Lines 25 to 27 in db62c5f
|
||||||||
"OriginSSLProtocols": [ | ||||||||
"TLSv1.2" | ||||||||
] | ||||||||
|
@@ -106,14 +87,15 @@ | |||||||
} | ||||||||
] | ||||||||
}, | ||||||||
"Id": "origin1" | ||||||||
"Id": "integhttpsredirectsameregionredirectRedirectDistributionOrigin1609D30F4" | ||||||||
} | ||||||||
], | ||||||||
"PriceClass": "PriceClass_All", | ||||||||
"ViewerCertificate": { | ||||||||
"AcmCertificateArn": { | ||||||||
"Ref": "redirectRedirectCertificateD6C59F7F" | ||||||||
}, | ||||||||
"MinimumProtocolVersion": "TLSv1.2_2021", | ||||||||
"SslSupportMethod": "sni-only" | ||||||||
} | ||||||||
} | ||||||||
|
@@ -122,12 +104,10 @@ | |||||||
"redirectRedirectAliasRecorde7728a9F2A656C": { | ||||||||
"Type": "AWS::Route53::RecordSet", | ||||||||
"Properties": { | ||||||||
"Name": "integ-same-region.example.com.", | ||||||||
"Type": "A", | ||||||||
"AliasTarget": { | ||||||||
"DNSName": { | ||||||||
"Fn::GetAtt": [ | ||||||||
"redirectRedirectDistributionCFDistribution1A4C48E3", | ||||||||
"redirectRedirectDistribution5423F951", | ||||||||
"DomainName" | ||||||||
] | ||||||||
}, | ||||||||
|
@@ -141,18 +121,18 @@ | |||||||
] | ||||||||
} | ||||||||
}, | ||||||||
"HostedZoneId": "Z23ABC4XYZL05B" | ||||||||
"HostedZoneId": "Z23ABC4XYZL05B", | ||||||||
"Name": "integ-same-region.example.com.", | ||||||||
"Type": "A" | ||||||||
} | ||||||||
}, | ||||||||
"redirectRedirectAliasRecordSixe7728a9391F03E": { | ||||||||
"Type": "AWS::Route53::RecordSet", | ||||||||
"Properties": { | ||||||||
"Name": "integ-same-region.example.com.", | ||||||||
"Type": "AAAA", | ||||||||
"AliasTarget": { | ||||||||
"DNSName": { | ||||||||
"Fn::GetAtt": [ | ||||||||
"redirectRedirectDistributionCFDistribution1A4C48E3", | ||||||||
"redirectRedirectDistribution5423F951", | ||||||||
"DomainName" | ||||||||
] | ||||||||
}, | ||||||||
|
@@ -166,7 +146,9 @@ | |||||||
] | ||||||||
} | ||||||||
}, | ||||||||
"HostedZoneId": "Z23ABC4XYZL05B" | ||||||||
"HostedZoneId": "Z23ABC4XYZL05B", | ||||||||
"Name": "integ-same-region.example.com.", | ||||||||
"Type": "AAAA" | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws-cdk/packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts
Lines 1051 to 1053 in db62c5f