Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 5ee78a6

Browse files
authored
feat(aws-cloudfront): allow configurable trustedSigners (#1351)
1 parent a891df9 commit 5ee78a6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/serverless-components/aws-cloudfront/src/getCacheBehavior.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ export default (
1313
compress = true,
1414
smoothStreaming = false,
1515
viewerProtocolPolicy = "https-only",
16-
fieldLevelEncryptionId = ""
16+
fieldLevelEncryptionId = "",
17+
trustedSigners = {
18+
Enabled: false,
19+
Quantity: 0
20+
}
1721
} = pathPatternConfig;
1822

1923
return {
@@ -24,10 +28,7 @@ export default (
2428
MinTTL: minTTL,
2529
PathPattern: pathPattern,
2630
TargetOriginId: originId,
27-
TrustedSigners: {
28-
Enabled: false,
29-
Quantity: 0
30-
},
31+
TrustedSigners: trustedSigners,
3132
ViewerProtocolPolicy: viewerProtocolPolicy,
3233
AllowedMethods: {
3334
Quantity: allowedHttpMethods.length,

0 commit comments

Comments
 (0)