GoogleCloudPlatform / marketing-analytics-jumpstart

Marketing Analytics Jumpstart consists of an easy, extensible and automated implementation of an end-to-end solution that enables Marketing Technology teams to store, transform, enrich with 1PD and analyze marketing data, and programmatically send predictive events to Google Analytics 4 to support conversion optimization and remarketing campaigns.
Apache License 2.0
102 stars 35 forks source link

Fresh Installation fails with data_store and feature_store modules #154

Closed chmstimoteo closed 1 month ago

chmstimoteo commented 1 month ago

╷ │ Error: Provider produced inconsistent result after apply │ │ When applying changes to module.data_store.module.dataform-workflow-prod[0].google_service_account.scheduler, provider │ "module.data_store.provider[\"registry.terraform.io/hashicorp/google\"]" produced an unexpected new value: Root resource was present, but now absent. │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker. ╵ ╷ │ Error: local-exec provisioner error │ │ with module.feature_store[0].null_resource.create_gemini_model, │ on modules/feature-store/bigquery-procedures.tf line 1470, in resource "null_resource" "create_gemini_model": │ 1470: provisioner "local-exec" { │ │ Error running command 'poetry run bq query --use_legacy_sql=false --max_rows=100 --maximum_bytes_billed=10000000 < ../../sql/query/create_gemini_model.sql │ ': exit status 2. Output: BigQuery error in query operation: Error processing job 'maj- │ uat2:bqjob_r127df360a4d91846_00000190e077fe87_1': Not found: Dataset maj- │ uat2:gemini_insights was not found in location US │ Failure details: │ - Not found: Dataset maj-uat2:gemini_insights was not found in │ location US │ ╵

chmstimoteo commented 1 month ago

After destroy and apply (for a second time)

╷ │ Error: Error creating service account: googleapi: Error 409: Service account workflow-scheduler-prod already exists within project projects/maj-uat2. │ Details: │ [ │ { │ "@type": "type.googleapis.com/google.rpc.ResourceInfo", │ "resourceName": "projects/maj-uat2/serviceAccounts/workflow-scheduler-prod@maj-uat2.iam.gserviceaccount.com" │ } │ ] │ , alreadyExists │ │ with module.data_store.module.dataform-workflow-prod[0].google_service_account.scheduler, │ on modules/dataform-workflow/service-account.tf line 15, in resource "google_service_account" "scheduler": │ 15: resource "google_service_account" "scheduler" { │ ╵

chmstimoteo commented 1 month ago

Fixed with PR https://github.com/GoogleCloudPlatform/marketing-analytics-jumpstart/pull/149