looker-open-source / looker-explore-assistant

A React Application for interacting with Looker data through natural language.
MIT License
83 stars 52 forks source link

Issue proceeding with BigQuery backend deployment #58

Closed pjabl closed 1 month ago

pjabl commented 2 months ago

explore-assistant-backend README.md bug This step is required regardless of BigQuery or Cloud Function deployment

If in the /explore-assistant-backend cd back to root (ie. cd ..) and run the following command:
openssl rand -base64 32 > .vertex_cf_auth_token

without this, we get the following error :

terraform plan
╷
│ Error: Invalid function argument
│ 
│   on cloud_function/main.tf line 59, in resource "google_secret_manager_secret_version" "vertex_cf_auth_token_version":
│   59:   secret_data = file("${path.module}/../../../.vertex_cf_auth_token")
│     ├────────────────
│     │ while calling file(path)
│     │ path.module is "cloud_function"
│ 
│ Invalid value for "path" parameter: no file exists at "cloud_function/../../../.vertex_cf_auth_token"; this function works only with files that are distributed as part of the configuration source code, so if this
│ file will be created by a resource in this configuration you must instead obtain this result from an attribute of that resource.
LukaFontanilla commented 1 month ago

This is resolved here https://github.com/looker-open-source/looker-explore-assistant/pull/57