Skip to content

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

@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 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
],
"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;

"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;

"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;

"HTTPSPort": 443,
"OriginKeepaliveTimeout": 5,
"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;

],
"CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
"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.

@phuhung273 phuhung273 force-pushed the httpsredirect-use-distribution branch from 612936b to 01f9b06 Compare May 17, 2025 05:07
@phuhung273 phuhung273 force-pushed the httpsredirect-use-distribution branch from 01f9b06 to a84f437 Compare June 8, 2025 02:02
@phuhung273 phuhung273 force-pushed the httpsredirect-use-distribution branch from a84f437 to 3dd07d0 Compare June 18, 2025 15:10
@phuhung273 phuhung273 force-pushed the httpsredirect-use-distribution branch from 3dd07d0 to 9bcfc77 Compare July 5, 2025 09:30
@phuhung273 phuhung273 force-pushed the httpsredirect-use-distribution branch from 9bcfc77 to 58ea849 Compare July 19, 2025 02:43
@phuhung273 phuhung273 force-pushed the httpsredirect-use-distribution branch from 58ea849 to fa0caaa Compare July 27, 2025 02:25
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

… CloudFront distribution (under feature flag)
@phuhung273 phuhung273 force-pushed the httpsredirect-use-distribution branch from fa0caaa to b8ac8b1 Compare September 20, 2025 22:06
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