Skip to content

Cloudfront without Lambda@Edge #39

Open
@jtatum

Description

@jtatum

I noticed that you're using Lambda@Edge to handle default root objects in subdirectories. That's a good solution that works with OAI, but there's another way to do this. This is documented at https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-serve-static-website/ under "Using a website endpoint as the origin, with access restricted by a Referer header"

  1. S3 bucket policy configured to allow access based on referrer header (set to a secret key)
  2. S3 static website hosting, with index document enabled as index.html - unlike cloudfront, this works on subfolders
  3. Cloudfront distribution pointing to the static website URL (rather than the S3 bucket) with referrer header set

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions