Publishing to a public Google Cloud bucket with gsutil

I decided to publish static CSV files to accompany my project, using a Google Cloud bucket (see cdc-vaccination-history issue #9).

The Google Cloud tutorial on was very helpful.

Creating the bucket

I used an authenticated gsutil session that I already had from my work with Google Cloud Run.

To create a new bucket:

gsutil mb gs://

mb is the make bucket command.

I had already verified my bucket with Google, otherwise this step would not have worked.

Uploading files

gsutil cp *.csv gs://

Using the gsutil cp command.

Making them available to the public

This command allows anyone to download from the bucket:

gsutil iam ch allUsers:objectViewer gs://


I configured cdc-vaccination-history-csv as a CNAME pointing to now shows an XML directory listing.


Created 2021-09-20T13:13:52-07:00 · Edit