cloudflare / cloudflare-gcp

Google Cloud Function to push json files from GC Storage to Big Query
Apache License 2.0
83 stars 49 forks source link

Errors when trying to run deploy.sh #98

Open blogtutor opened 2 years ago

blogtutor commented 2 years ago

Hi! I'm brand new to Google Cloud, and am trying to get this all installed and working. I've gotten to the point where I'm in the Cloud Shell Editor, have installed the scripts, and have edited deploy.sh (setting my bucket name and directory).

When I run sh ./deploy.sh it gives me errors:

andrew@cloudshell:~/cloudflare-gcp-logstream-update/logpush-to-bigquery$ sh ./deploy.sh
ERROR: (gcloud.pubsub.topics.create) Error parsing [topic].
The [topic] resource is not properly specified.
Failed to find attribute [project]. The attribute can be set in the following ways:
- provide the argument `topic` on the command line with a fully specified name
- provide the argument `--project` on the command line
- set the property `core/project`
ERROR: (gcloud) value for field [projectsId] in collection [pubsub.projects.topics] is required but was not provided
ERROR: (gcloud.functions.deploy) Error parsing [name].
The [function] resource is not properly specified.
Failed to find attribute [project]. The attribute can be set in the following ways:
- provide the argument `--project` on the command line
- set the property `core/project`

Any help is greatly appreciated... Thanks so much!

stiak commented 7 months ago

The readme probably needs an update, but you'll need to set a default project first: gcloud config set project <project name goes here>