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' }