Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/frankcash/terraform-gcp-pub-sub

Simple Terraform code to deploy a Cloud Function that consumes PubSub in GCP
https://github.com/frankcash/terraform-gcp-pub-sub

Last synced: about 7 hours ago
JSON representation

Simple Terraform code to deploy a Cloud Function that consumes PubSub in GCP

Awesome Lists containing this project

README

        

## Getting Google Default Credentials

```
Error: Error running plan: 1 error(s) occurred:

* provider.google: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
```
To Fix:
```
export GOOGLE_CLOUD_KEYFILE_JSON=path/to/key/file/file.json
```

# Sending a Message

`gcloud pubsub topics publish QUEUE_NAME --message MESSAGE`