# Configure Pub/Sub as a Snowbridge source
> Configure PubSub source for Snowplow Snowbridge to read from GCP Pub/Sub subscriptions with service account authentication.
> Source: https://docs.snowplow.io/docs/api-reference/snowbridge/configuration/sources/pubsub/
> Documentation index: https://docs.snowplow.io/llms.txt

Authentication is done using a [GCP Service Account](https://cloud.google.com/docs/authentication/application-default-credentials#attached-sa). Create a service account credentials file, and provide the path to it via the `GOOGLE_APPLICATION_CREDENTIALS` environment variable.

Snowbridge connects to PubSub using [Google's Go Pubsub sdk](https://cloud.google.com/go/pubsub), which establishes a grpc connection with TLS encryption.

## Configuration options

Here is an example of the minimum required configuration:

```hcl
loading...
```

[View on GitHub](<&#xA;https://github.com/snowplow/snowbridge/blob/v6.3.0/assets/docs/configuration/sources/pubsub-minimal-example.hcl&#xA;>)

Here is an example of every configuration option:

```hcl
loading...
```

[View on GitHub](<&#xA;https://github.com/snowplow/snowbridge/blob/v6.3.0/assets/docs/configuration/sources/pubsub-full-example.hcl&#xA;>)
