Skip to content
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

feat(cloudfront): support gRPC for distribution #32535

Merged
merged 35 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
9d8e92f
feat(cloudfront): support gRPC for distribution
go-to-k Dec 16, 2024
00a2003
unit test
go-to-k Dec 16, 2024
633ac50
README
go-to-k Dec 16, 2024
e736d8f
integ without snapshots
go-to-k Dec 16, 2024
cdd1500
Merge branch 'main' of https://github.com/go-to-k/aws-cdk into cf-grpc
go-to-k Dec 17, 2024
dca03fe
fix code and add tests
go-to-k Dec 17, 2024
e2288f7
default label
go-to-k Dec 17, 2024
a018a4f
snapshots
go-to-k Dec 17, 2024
05a803f
add validation
go-to-k Dec 17, 2024
b29265c
typo in tests
go-to-k Dec 17, 2024
1321702
improve
go-to-k Dec 17, 2024
c965edd
change README
go-to-k Dec 17, 2024
85bb175
fix doc
go-to-k Dec 17, 2024
adc904b
change error msg
go-to-k Dec 17, 2024
0d61b26
change default label
go-to-k Dec 17, 2024
7b78244
validation for http2
go-to-k Dec 17, 2024
0d703a9
validation for edgeLambdas
go-to-k Dec 17, 2024
3b4c1f5
validation for errorResponses and change method name to validateGrpc
go-to-k Dec 17, 2024
60d00d5
rm errorResponse validation
go-to-k Dec 18, 2024
e8be128
semi-colon in distribution
go-to-k Dec 18, 2024
a67b2af
jsdoc for validations
go-to-k Dec 18, 2024
4bfe1cc
unit test for edgeLambda
go-to-k Dec 18, 2024
83893e0
unit tests for httpVersion
go-to-k Dec 18, 2024
9d2391b
unit tests for additionalBehaviors
go-to-k Dec 18, 2024
41706bb
Merge branch 'main' of https://github.com/go-to-k/aws-cdk into cf-grpc
go-to-k Feb 2, 2025
69482ac
improve error msg for validateGrpc
go-to-k Feb 19, 2025
901efa6
call validateGrpc in addBehavior
go-to-k Feb 19, 2025
9154927
use singlequote quotes
go-to-k Feb 19, 2025
041e253
Merge branch 'main' into cf-grpc
aaythapa Feb 19, 2025
2d896a3
change error message
go-to-k Feb 20, 2025
4532527
add new test with cfn template
go-to-k Feb 20, 2025
38e47a5
use ValidationError
go-to-k Feb 20, 2025
7ce3da9
add tests for additionalBehaviors
go-to-k Feb 20, 2025
c64d888
nit
go-to-k Feb 20, 2025
43afbf2
Merge branch 'main' into cf-grpc
mergify[bot] Feb 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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.

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
@@ -0,0 +1,91 @@
{
"Resources": {
"TestDistribution94EC811C": {
"Type": "AWS::CloudFront::Distribution",
"Properties": {
"DistributionConfig": {
"CacheBehaviors": [
{
"CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
"Compress": true,
"PathPattern": "/second",
"TargetOriginId": "integdistributiongrpcTestDistributionOrigin1C4AE5CE4",
"ViewerProtocolPolicy": "allow-all"
},
{
"CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
"Compress": true,
"PathPattern": "/third",
"TargetOriginId": "integdistributiongrpcTestDistributionOrigin1C4AE5CE4",
"ViewerProtocolPolicy": "allow-all"
}
],
"DefaultCacheBehavior": {
"AllowedMethods": [
"GET",
"HEAD",
"OPTIONS",
"PUT",
"PATCH",
"POST",
"DELETE"
],
"CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
"Compress": true,
"GrpcConfig": {
"Enabled": true
},
"TargetOriginId": "integdistributiongrpcTestDistributionOrigin1C4AE5CE4",
"ViewerProtocolPolicy": "allow-all"
},
"Enabled": true,
"HttpVersion": "http2",
"IPV6Enabled": true,
"Origins": [
{
"CustomOriginConfig": {
"OriginProtocolPolicy": "https-only"
},
"DomainName": "www.example.com",
"Id": "integdistributiongrpcTestDistributionOrigin1C4AE5CE4"
}
]
}
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

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.

Loading