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): add origin group selection criteria to L2 Distribution and L2 OriginGroup #32740

Merged
merged 20 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e8d0f65
add origin selection criteria to L2 Distribution
jamiepmullan Jan 4, 2025
e8f669a
Add readme
jamiepmullan Jan 4, 2025
6fb2474
rename OriginGroupSelectionCriteria to OriginSelectionCriteria to fit…
jamiepmullan Jan 5, 2025
7ec5343
fixes based on review feedback
jamiepmullan Jan 6, 2025
7b81e82
Merge branch 'main' into feat/origin-group-selection-criteria
jamiepmullan Jan 6, 2025
3c90fa5
added docs
jamiepmullan Jan 7, 2025
739b6f9
Merge branch 'main' into feat/origin-group-selection-criteria
jamiepmullan Jan 7, 2025
b8ebf3e
Merge branch 'main' into feat/origin-group-selection-criteria
jamiepmullan Jan 10, 2025
6cc21f0
Merge branch 'main' into feat/origin-group-selection-criteria
jamiepmullan Jan 14, 2025
27d1493
Merge branch 'main' into feat/origin-group-selection-criteria
jamiepmullan Jan 16, 2025
d3d1a7f
Merge branch 'main' into feat/origin-group-selection-criteria
jamiepmullan Jan 18, 2025
ac6dd34
Merge branch 'main' into feat/origin-group-selection-criteria
jamiepmullan Jan 22, 2025
0c8fe0d
Merge branch 'main' into feat/origin-group-selection-criteria
jamiepmullan Jan 23, 2025
c884704
fixes
jamiepmullan Jan 23, 2025
8af9874
Merge branch 'main' into feat/origin-group-selection-criteria
jamiepmullan Jan 26, 2025
6206a10
Merge branch 'main' into feat/origin-group-selection-criteria
jamiepmullan Jan 27, 2025
d8ec4f3
Merge branch 'main' into feat/origin-group-selection-criteria
jamiepmullan Jan 28, 2025
5821523
Merge branch 'main' into feat/origin-group-selection-criteria
gracelu0 Jan 28, 2025
6f4337c
Merge branch 'main' into feat/origin-group-selection-criteria
jamiepmullan Jan 28, 2025
52a38e3
Merge branch 'main' into feat/origin-group-selection-criteria
mergify[bot] Jan 28, 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.

Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"Resources": {
"cg1": {
"Type": "AWS::MediaPackageV2::ChannelGroup",
"Properties": {
"ChannelGroupName": "channelGroup1"
}
},
"cg2": {
"Type": "AWS::MediaPackageV2::ChannelGroup",
"Properties": {
"ChannelGroupName": "channelGroup2"
}
},
"Distribution830FAC52": {
"Type": "AWS::CloudFront::Distribution",
"Properties": {
"DistributionConfig": {
"CacheBehaviors": [
{
"CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
"Compress": true,
"PathPattern": "/video",
"TargetOriginId": "cloudfrontorigingroupselectioncriteriaDistributionOriginGroup1518D308D",
"ViewerProtocolPolicy": "allow-all"
}
],
"DefaultCacheBehavior": {
"CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
"Compress": true,
"TargetOriginId": "cloudfrontorigingroupselectioncriteriaDistributionOriginGroup1518D308D",
"ViewerProtocolPolicy": "allow-all"
},
"Enabled": true,
"HttpVersion": "http2",
"IPV6Enabled": true,
"OriginGroups": {
"Items": [
{
"FailoverCriteria": {
"StatusCodes": {
"Items": [
404
],
"Quantity": 1
}
},
"Id": "cloudfrontorigingroupselectioncriteriaDistributionOriginGroup1518D308D",
"Members": {
"Items": [
{
"OriginId": "cloudfrontorigingroupselectioncriteriaDistributionOrigin1AA511FA4"
},
{
"OriginId": "cloudfrontorigingroupselectioncriteriaDistributionOrigin2AFDC8F08"
}
],
"Quantity": 2
},
"SelectionCriteria": "media-quality-based"
}
],
"Quantity": 1
},
"Origins": [
{
"CustomOriginConfig": {
"OriginProtocolPolicy": "https-only",
"OriginSSLProtocols": [
"TLSv1.2"
]
},
"DomainName": {
"Fn::GetAtt": [
"cg1",
"EgressDomain"
]
},
"Id": "cloudfrontorigingroupselectioncriteriaDistributionOrigin1AA511FA4"
},
{
"CustomOriginConfig": {
"OriginProtocolPolicy": "https-only",
"OriginSSLProtocols": [
"TLSv1.2"
]
},
"DomainName": {
"Fn::GetAtt": [
"cg2",
"EgressDomain"
]
},
"Id": "cloudfrontorigingroupselectioncriteriaDistributionOrigin2AFDC8F08"
}
]
}
}
}
},
"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.

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
Loading