Can't access through S3 to files updated through CloudFront

后端 未结 3 1853
小鲜肉
小鲜肉 2021-01-06 21:01

I was using Cloud-Front to access files in my S3 bucket and update the files. I disable Cloud-Front now, however i cannot access those files directly through S3 now.

<
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-06 21:40

    Having had the issue a couple of times. The solution is Creating a CloudFront Origin Access Identity and adding it to Your Distribution when creating CF.

    Distribution->Streaming->Distribution Settings->Edit Restrict Bucket Access: Yes Origin Access Identity: Use existing (you may need to setup) Grant Read Permissions on Bucket: Yes Restrict Viewer Access (Use Signed URLs): Yes Trusted Signers: Self ... Used default for rest ...

    I hope that helps

提交回复
热议问题