aws-samples / image-optimization

Simple, performant and cost efficient solution for optimizing images using Amazon CloudFront, Amazon S3 and AWS Lambda
MIT No Attribution
172 stars 106 forks source link

A single cloudfront #25

Closed CifGom closed 6 months ago

CifGom commented 6 months ago

Could everything work with a single cloudfront distribution? or with two distributions and a single subdomain?

achrafsouk commented 6 months ago

it's easily possible using the same distribution. You need to create a dedicated behavior for image processing, and configure the solution on it.

The other proposal is not an option. You can't configure two CloudFront distributions with the same domain.

CifGom commented 6 months ago

Thanks for the info. I'll try it on Monday, if there's something wrong I'll let you know in case you can help me. Thank you so much