feat(cloudfront): support gRPC for distribution#32535
feat(cloudfront): support gRPC for distribution#32535mergify[bot] merged 35 commits intoaws:mainfrom
Conversation
aws-cdk-automation
left a comment
There was a problem hiding this comment.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #32535 +/- ##
=======================================
Coverage 82.17% 82.17%
=======================================
Files 119 119
Lines 6862 6862
Branches 1158 1158
=======================================
Hits 5639 5639
Misses 1120 1120
Partials 103 103
Flags with carried forward coverage won't be shown. Click here to find out more.
|
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
❌ Mergify doesn't have permission to updateDetailsFor security reasons, Mergify can't update this pull request. Try updating locally. |
|
Thank you for your review! P.S. I will add the tests, I'll get back to you when that's done. |
| } | ||
| const validHttpVersions = [HttpVersion.HTTP2, HttpVersion.HTTP2_AND_3]; | ||
| if (!validHttpVersions.includes(this.httpVersion)) { | ||
| throw new Error(`'httpVersion' must be ${validHttpVersions.join(', ')} if 'enableGrpc' in 'defaultBehavior' or 'additionalBehaviors' is true, got ${this.httpVersion}`); |
There was a problem hiding this comment.
nit
| throw new Error(`'httpVersion' must be ${validHttpVersions.join(', ')} if 'enableGrpc' in 'defaultBehavior' or 'additionalBehaviors' is true, got ${this.httpVersion}`); | |
| throw new Error(`'httpVersion' must be ${validHttpVersions.join('or ')} if 'enableGrpc' in 'defaultBehavior' or 'additionalBehaviors' is true, got ${this.httpVersion}`); |
|
@mergify update |
❌ Mergify doesn't have permission to updateDetailsFor security reasons, Mergify can't update this pull request. Try updating locally. |
|
@mergify update |
☑️ Nothing to doDetails
|
|
Added the tests and also made other changes (to use Could you please take a look at it again? |
aaythapa
left a comment
There was a problem hiding this comment.
Thank you as always for the contribution
|
@mergify update |
✅ Branch has been successfully updated |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
Closes #32534.
Reason for this change
CloudFormation supports
GrpcConfigproperty to enable gRPC inCacheBehaviorandDefaultCacheBehavior.https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-grpcconfig.html
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html
So it would be good to enable gRPC for CloudFront Distribution using L2.
Description of changes
Add
enableGrpcproperty inBehaviorOptions.Description of how you validated changes
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