"Access denied: Anonymous users does not have storage.objects.list access to bucket" 尝试从 Google 存储桶托管静态网站时

"Access denied: Anonymous users does not have storage.objects.list access to bucket" when trying to host a static website from a Google Bucket

我正在尝试按照 https://cloud.google.com/storage/docs/hosting-static-website 上的说明从 Google 存储桶托管静态网站。我创建了 CNAME 别名,将内容上传到与网站同名的存储桶 (www.kurtpeek.com),并检查了所有项目的 "Share publicly"。但是,当我浏览该网站时,我看到以下内容:

我已阅读 http://tekhoow.blogspot.be/2015/12/soving-accessdenied-on-google-cloud.html that this problem can be solved from the command line using gsutil。但是,我以前使用基于 Web 的控制台为不同的网站做过,只是不记得是怎么做的了。

我怀疑它应该在 "IAM" 菜单中的某处,但我似乎找不到与命令类似的 'read public' 选项。

任何人都可以指出 'missing ingredient' 让网站正常运行吗?

我终于使用了命令行解决方案:

~$ gsutil web set -m index.html gs://www.kurtpeek.com
Setting website configuration on gs://www.kurtpeek.com/...

现在网站可以正常运行了。