Skip to content

Cloud Storage is Google’s object storage service. Tenzir can treat it like a local filesystem to read and write files.

GoogleCloud Storage

You need to configure appropriate credentials using Google’s Application Default Credentials.

Use from_gcs to read files from Cloud Storage. It supports glob patterns and automatic format detection. For writing, use save_gcs with a print operator.

from_gcs "gs://bucket/path/to/file.json"
from_gcs "gs://bucket/logs/**.json"
from {foo: 42}
print_json
save_gcs "gs://bucket/path/to/file.json"

Last updated: