How can I make a S3 bucket public (the amazon example policy doesn't work)?

后端 未结 8 488
庸人自扰
庸人自扰 2020-12-28 16:38

Amazon provides an example for Granting Permission to an Anonymous User as follows (see Example Cases for Amazon S3 Bucket Policies):

{
    \"Versio         


        
8条回答
  •  有刺的猬
    2020-12-28 17:06

    I know it is an old question but I would like to add information that may still be relevant today.

    I believe that this bucket should be a static site. Because of this, you must use a specific URL for your rules to be accepted. To do this, you must add a "website" to your URL. Otherwise, it will treat it just like an object repository.

    Example:

    With the problem pointed out: https://name-your-bucket.sa-east-1.amazonaws.com/home

    Without the problem pointed out: http://name-your-bucket.s3-website-sa-east-1.amazonaws.com/home

    Hope this helps :)

提交回复
热议问题