Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

phuhung273
Copy link
Contributor

@phuhung273 phuhung273 commented Apr 30, 2025

Issue # (if applicable)

Closes #31546

Reason for this change

CloudFrontWebDistribution is deprecated

Description of changes

HttpsRedirect use Distribution instead of deprecated CloudFrontWebDistribution under feature flag

Please check template comments for explanation on each removed param:

  • Most of them are safe to remove since most are default
  • ForwardedValues is deprecated and replaced by CachePolicyId

Description of how you validated changes

Unit + Integ

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

… CloudFront distribution (under feature flag)
@aws-cdk-automation aws-cdk-automation requested a review from a team April 30, 2025 05:47
@github-actions github-actions bot added bug This issue is a bug. effort/medium Medium work item – several days of effort p2 star-contributor [Pilot] contributed between 25-49 PRs to the CDK labels Apr 30, 2025
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 612936b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Apr 30, 2025
@@ -54,22 +54,9 @@
],
"Comment": "Redirect to aws.amazon.com from integ-same-region.example.com",
"DefaultCacheBehavior": {
"AllowedMethods": [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @default AllowedMethods.ALLOW_GET_HEAD
*/
readonly allowedMethods?: AllowedMethods;

"GET",
"HEAD"
],
"CachedMethods": [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @default CachedMethods.CACHE_GET_HEAD
*/
readonly cachedMethods?: CachedMethods;

@@ -78,14 +65,8 @@
"IPV6Enabled": true,
"Origins": [
{
"ConnectionAttempts": 3,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @default 3
*/
readonly connectionAttempts?: number;

@@ -78,14 +65,8 @@
"IPV6Enabled": true,
"Origins": [
{
"ConnectionAttempts": 3,
"ConnectionTimeout": 10,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @default Duration.seconds(10)
*/
readonly connectionTimeout?: Duration;

"CustomOriginConfig": {
"HTTPPort": 80,
"HTTPSPort": 443,
"OriginKeepaliveTimeout": 5,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @default Duration.seconds(5)
*/
readonly keepaliveTimeout?: cdk.Duration;

"OriginProtocolPolicy": "http-only",
"OriginReadTimeout": 30,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @default Duration.seconds(30)
*/
readonly readTimeout?: cdk.Duration;

"Compress": true,
"ForwardedValues": {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. effort/medium Medium work item – several days of effort p2 pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. star-contributor [Pilot] contributed between 25-49 PRs to the CDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_route53_patterns: Use of deprecated aws_cloudfront.CloudFrontWebDistribution
2 participants