Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 1.02 KB

File metadata and controls

21 lines (18 loc) · 1.02 KB

AWS JS S3 Explorer + Cognito@Edge 🔭 🔐

This is an example of how to use AWS JS S3 Explorer with Cognito@Edge and Google OAuth. It does the following:

  1. Creates a static website in S3 with a custom domain using CloudFront.
  2. Uses Cognito@Edge to authenticate users with Google OAuth before they can access the site.

Setup

  1. Run the devcontainer.
  2. Create Google OAuth client credentials.
  3. Add a .tfvars file with the following variables:
    domain               = "your-domain.ca"
    google_client_id     = "your-client-id"
    google_client_secret = "your-client-secret"
  4. Run:
    npm install --prefix ./terraform/aws/cognito-at-edge
    terraform -chdir=./terraform/aws apply