serverless-nextjs/serverless-next.js

cannot block all public access for the s3 bucket

开放

#813 创建于 2020年11月22日

 (1 条评论) (0 个反应) (0 位负责人)TypeScript (447 个派生)batch import
buggood first issue

仓库指标

星标
 (3,998 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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?

贡献者指南