Skip to content

Conversation

@badmintoncryer
Copy link
Contributor

Issue # (if applicable)

None

Reason for this change

Cloudfront function supports for 2 JavaScript runtimes(1.0 & 2.0). Runtime 2.0 is backward compatible with 1.0 and its use is generally recommended, but CDK uses 1.0 by default for backward compatibility reasons.

Description of changes

  • define @aws-cdk/aws-cloudfront:defaultFunctionRuntimeV2_0 feature flag
  • use 2.0 runtime by default when the feature flag is enabled

Describe any new or updated permissions being added

None

Description of how you validated changes

Add both unit and integ tests

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 November 4, 2025 14:13
@github-actions github-actions bot added p2 distinguished-contributor [Pilot] contributed 50+ PRs to the CDK labels Nov 4, 2025
@badmintoncryer badmintoncryer marked this pull request as ready for review November 4, 2025 14:14
@badmintoncryer badmintoncryer changed the title feat(cloudfront): use JavaScript runtime 2.0 by default for function feat(cloudfront): use JavaScript runtime 2.0 by default for function(under feature flag) Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

distinguished-contributor [Pilot] contributed 50+ PRs to the CDK p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant