Description
Hi there,
first of thank you so so much for building this awesome terraform script. I've been running over the vercel image usage limit and this is a lifesaver. I am somewhat new to Terraform and all the AWS resources, so maybe it is just me being stupid but when trying to set the configuration for source_bucket_id it doesn't work.
Instead, I somehow have to put a separate CloudFront before my bucket and provide the URL to the CloudFront instead of that for the bucket, so that the optimizer can correctly connect with the images and optimize them... This feels clunky because I now have 2 CloudFront => 1 for the bucket and 1 for the lambda.
The flow is like this:
client => cloudfront => lambda => cloudfront 2 => bucket
In my opinion, I should just be able to provide the
source_bucket_id = "my::custom-bucket::arn"
and then I would expect it to configure the lambda optimizer to automatically connect to it, just as shown in the diagram in the Readme... but it doesn't.