# BigTable

## Setup

The following credentials keys are accepted:

* `instance` **(required)** -> The BigTable instance id
* `project` **(required)** -> The GCP project ID for the project
* `key_file` **(required)** -> The Service Account JSON

### Using `sling conns`

Here are examples of setting a connection named `BIGTABLE`. We must provide the `type=bigtable` property:

{% code overflow="wrap" %}

```bash
$ sling conns set BIGTABLE type=bigtable instance=<instance> project=<project> gc_key_file=/path/to/service.account.json
```

{% endcode %}

### Environment Variable

See [here](https://docs.slingdata.io/sling-cli/environment#dot-env-file-.env.sling) to learn more about the `.env.sling` file.

{% code overflow="wrap" %}

```bash
export BIGTABLE='{type: bigtable, project: my-google-project, instance: my-instance, key_file: /path/to/service.account.json}'
```

{% endcode %}

### Sling Env File YAML

See [here](https://docs.slingdata.io/sling-cli/environment#sling-env-file-env.yaml) to learn more about the sling `env.yaml` file.

```yaml
connections:
  BIGTABLE:
    type: bigtable
    project: <project>
    instance: <instance>
    key_file: '<key_file>'
```

If you are facing issues connecting, please reach out to us at <support@slingdata.io>, on [discord](https://discord.gg/q5xtaSNDvp) or open a Github Issue [here](https://github.com/slingdata-io/sling-cli/issues).
