From 2defb9030c0c43901231e229886fc5997db0b4ce Mon Sep 17 00:00:00 2001 From: Samuel Montgomery-Blinn Date: Wed, 8 Dec 2021 13:08:06 -0500 Subject: [PATCH] Allow configuration of PriceClass --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 0bc74e5..a7cc47c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -32,7 +32,7 @@ const createCloudFrontDistribution = async (cf, s3, inputs) => { Quantity: 0, Items: [] }, - PriceClass: 'PriceClass_All', + PriceClass: inputs.priceclass if hasattr(inputs, 'priceclass') else 'PriceClass_All', Enabled: inputs.enabled, HttpVersion: 'http2' }