awesome straight forward video! this helped me study for my aws cert. thanks! i have a request, can you make a video that explans vpc endpoints and what its use cases are?
Just something I was looking for and I’m glad I found your video - this helped me figure out what I was doing wrong in my setup config. Nice and sufficient explanation with enough pace 👍🏻
@@EnricoPortolan Keep uploading such videos; very informative. I didn’t know about origin and viewer request difference in cloudfront/Lambda@edge which you clarified quickly with the help of diagram/POC in the video.
I have a similar case with cloudfront set to route53 with domain names used Where I have setup the same lambda@edge to switch across 2 s3 buckets based on cookie, but I have one more requirement ie the 3rd case : on setting a 3rd cookie with value C instead of switching to a s3 bucket endpoint I need to switch to a new subdomain - which works as well But now that when this happens it does a 301/308 permanent redirect and thus when I set back the cookie to A/B it no more redirects to S3 endpoints it just keeps on loading the same last website, unless I clear the browser cookie and cache ( am I missing something)?
How are you handling cache with this? I've tried that with a cache-policy using the cookie origin as key. When the request has no cookie, it returns a random origin, but CloudFront caches it and following requests will have the same response.
awesome straight forward video! this helped me study for my aws cert. thanks!
i have a request, can you make a video that explans vpc endpoints and what its use cases are?
Just something I was looking for and I’m glad I found your video - this helped me figure out what I was doing wrong in my setup config.
Nice and sufficient explanation with enough pace 👍🏻
+1 to your subscribers list 👍🏻
Thanks for subscribing :)
@@EnricoPortolan Keep uploading such videos; very informative. I didn’t know about origin and viewer request difference in cloudfront/Lambda@edge which you clarified quickly with the help of diagram/POC in the video.
Is there any chance you can share function code?
I have a similar case with cloudfront set to route53 with domain names used
Where I have setup the same lambda@edge to switch across 2 s3 buckets based on cookie, but I have one more requirement ie the 3rd case :
on setting a 3rd cookie with value C instead of switching to a s3 bucket endpoint I need to switch to a new subdomain - which works as well
But now that when this happens it does a 301/308 permanent redirect and thus when I set back the cookie to A/B it no more redirects to S3 endpoints it just keeps on loading the same last website, unless I clear the browser cookie and cache ( am I missing something)?
How are you handling cache with this?
I've tried that with a cache-policy using the cookie origin as key. When the request has no cookie, it returns a random origin, but CloudFront caches it and following requests will have the same response.