AWS CloudFront access denied to S3 bucket

前端 未结 6 492
一向
一向 2021-01-31 07:34

I am trying to setup CloudFront to serve static files hosted in my S3 bucket. I have setup distribution but I get AccessDenied when trying

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-31 08:18

    This can happen if you are using a bucket that has just been newly created.

    According official reply here: AWS Forun link, you have to wait for a couple of hours after creating a new bucket before you can have cloud front distribution working on it correctly.

    Solution is to temporarily work from one of your old buckets and switch to the new bucket a couple of hours later.

提交回复
热议问题