In this video we add basic auth to an s3 bucket containing a static website.
⚡️ Blog post: www.undefineda...
This way, the browser will display an authentication dialog and require a username and password to get access to the static site. This will protect the files on our s3 bucket and limit access to them.
We use a cloudfront distribution and a lambda edge function that checks the request being made and authenticates the user.
⭐️ Subscribe for more content: newsletter.und...
#basicauth #s3 #cloudfront
5 окт 2024