Ramsha Siddiqui
08/22/2023, 3:49 PMRamsha Siddiqui
08/22/2023, 3:52 PM2023-08-22T17:51:28.956+0200 [INFO]: Data distribution worker started
2023-08-22T17:51:28.956+0200 [INFO]: Request id: "data_load_XXX"
2023-08-22T17:51:28.956+0200 [INFO]: Data source: "XXX"
2023-08-22T17:51:28.956+0200 [INFO]: Additional parameters: {GDC_DE_SYNCHRONIZE_ALL=true, PROCESS_ID=XXX}
2023-08-22T17:51:28.956+0200 [INFO]: Synchronization mode: all mapped datasets (default)
2023-08-22T17:51:31.060+0200 [ERROR]: Data distribution worker failed. Reason: Invalid BigQuery private key:
Invalid PKCS#8 data. error_id=13458882-0cab-4267-a48b-8e3e6c714932 error_code=msf.cloudresource.dataload.model.mapping.task.error
full error logFrancisco Antunes
08/22/2023, 4:08 PMRamsha Siddiqui
08/22/2023, 4:37 PM# Create a key for the above service account.
resource "google_service_account_key" "sa-gooddata-key" {
service_account_id = google_service_account.sa-gooddata-user.name
key_algorithm = "KEY_ALG_RSA_2048"
private_key_type = "TYPE_GOOGLE_CREDENTIALS_FILE"
}
the key is generated in code with user and assigned all necessary roles - but i think its not in the PKCS#8 format (whats the correct key_algorithm and key type for that?)Francisco Antunes
08/22/2023, 4:49 PM-----BEGIN PRIVATE KEY-----
on the .json), which is what you input on GoodData when connecting to the Data Source.
In the past, I performed this part using the Google Cloud console itself, as described in the Console tab of the tutorial (see my screenshot).