serverless-nextjs/serverless-next.js

cannot block all public access for the s3 bucket

Open

#813 建立於 2020年11月22日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)TypeScript (3,998 star) (447 fork)batch import
buggood first issue

描述

I am using the serverless next component and I have this setup

nextJsUiApp:
  component: "@sls-next/serverless-component"
  inputs:
    bucketName: xxx
    bucketRegion: xxx
    domain: ["xxxx", "xxxxx.com"]
    nextConfigDir: "../../"
    cloudfront:
      # if you want to use an existing cloudfront distribution, provide it here
      distributionId: xxxxxx
      priceClass: "PriceClass_100"
      origins:
      - url: https://xxxx.s3.amazonaws.com
        private: true

setting the origin private flag to true doesn't seem to do anything to the bucket permissions or policy.

Can i block all public access through any of the config flags?

貢獻者指南