Soving AccessDenied on Google Cloud Storage domain mapping

As I was facing this again trying to create amp pages for my main site, here is a concrete example for my changes

Adding the proper DNS redirection in my domain provider (OVH in my case) CNAME

This was first giving the error:

  <Message>Access denied.</Message>
  <Details>Anonymous callers do not have storage.objects.list access to bucket</Details>

the solution was to configure my bucket as a website configuration:

gsutil web set -m index.html -e 404.html gs://

And to make all files I add public by default and not worry about ACL anymore, I can use

gsutil defacl ch -u AllUsers:R gs://

To make previous imported files public, I can use

gsutil -m acl -r set public-read gs://

Popular posts from this blog

Simple Samba setup on Lubuntu

USB Foot Switch II - "Usb HIDKB Not connected"