Any way to achieve behavior similar to lambda@edge in cloudfront?

In AWS CloudFront, I can write a function which can perform some verification before allowing a request to reach S3 Objects(Let's say user wants to download some data), here role of lambda is to just to act as a custom gateway which either allows or deny a request. How to achieve this using workers and R2? All I could find from documentation is to use fetch API and return object.body but what if the file size is big and client download time exceeds the max worker execution time? Any way I can just let the request pass through and let R2 handle the serving of file?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?