1

I am working on a proof of concept static website and would like to use Amazon's S3 website hosting facility. I currently do not have a domain name but would like to secure the website with some form of username and password for access until we are ready.

I couldn't seem to find a quick and easy way to do this. I was thinking to use a NGINX docker image on my EC2 instance, use basic auth and serve the files from S3. Will this work or are there any other ways (lambda?) I can do this? Any pointers or example code would be much appreciated.

Swordfish
  • 1,127
  • 24
  • 46

1 Answers1

1

Better go Serverless with Cognito, since looks like you are sticking to the AWS stack. Going Serverless, you don't need pay for EC2 instances.

Praveen Sripati
  • 32,799
  • 16
  • 80
  • 117