This is an example of how to use AWS JS S3 Explorer with Cognito@Edge and Google OAuth. It does the following:
- Creates a static website in S3 with a custom domain using CloudFront.
- Uses Cognito@Edge to authenticate users with Google OAuth before they can access the site.
- Run the devcontainer.
- Create Google OAuth client credentials.
- Add a
.tfvars
file with the following variables:domain = "your-domain.ca" google_client_id = "your-client-id" google_client_secret = "your-client-secret"
- Run:
npm install --prefix ./terraform/aws/cognito-at-edge terraform -chdir=./terraform/aws apply