# Boltdb-shipper - Can we push indexes/chunks from local instance of loki to GCS Bucket

**URL:** <https://community.grafana.com/t/boltdb-shipper-can-we-push-indexes-chunks-from-local-instance-of-loki-to-gcs-bucket/40363>\
**Category:** Grafana Loki\
**Created:** [December 9, 2020, 4:43pm UTC](https://community.grafana.com/t/boltdb-shipper-can-we-push-indexes-chunks-from-local-instance-of-loki-to-gcs-bucket/40363 "2020-12-09T16:43:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhaidersarfraz](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@mhaidersarfraz](https://community.grafana.com/u/mhaidersarfraz)\
**Post date:** [December 9, 2020, 4:43pm UTC](https://community.grafana.com/t/boltdb-shipper-can-we-push-indexes-chunks-from-local-instance-of-loki-to-gcs-bucket/40363/1 "2020-12-09T16:43:24Z")

</div>

I can see from Grafana’s Loki [documentation](https://grafana.com/docs/loki/latest/operations/storage/boltdb-shipper/) that we can use boltdb-shipper to create a single store. But from the configuration example we only provide the GCS bucket name. This seems to imply that the loki instance must be running on Google cloud as well - no auth, no secretKey passed, just a GCS Bucket name given to loki.

My question:  
Is there a way to store and read chucks/indexes to GCS Bucket from a locally ran Loki instance using boltdb-shipper

**Configuration Sample provided by Grafana:**

 ![Screenshot from 2020-12-09 21-42-14](https://us1.discourse-cdn.com/grafana/original/2X/9/9209f0ef55dc6f5fa0223e8ce9d34f04d70d2101.png)

---

<div class="post-metadata">

**Author:** ![ewelch](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/ewelch/32/13744_2.png) [@ewelch](https://community.grafana.com/u/ewelch)\
**Post date:** [December 10, 2020, 5:04pm UTC](https://community.grafana.com/t/boltdb-shipper-can-we-push-indexes-chunks-from-local-instance-of-loki-to-gcs-bucket/40363/2 "2020-12-10T17:04:56Z")

</div>

> This seems to imply that the loki instance must be running on Google cloud as well - no auth, no secretKey passed, just a GCS Bucket name given to loki.

Any of the Loki stores can be used it doesn’t have to be GCS (S3, filessystem, Azure etc are also all valid options)

Credentials aren’t provided for the GCS store because the google client we use doesn’t accept them via config, only via environment variables.

[The google client docs give some more info](https://cloud.google.com/storage/docs/reference/libraries)
