Skip to content

AWS S3 explorer using Cognito and Lambda@Edge to restrict access

Notifications You must be signed in to change notification settings

patheard/aws-js-s3-explorer-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

AWS S3 explorer using Cognito and Lambda@Edge to restrict access

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published