diff --git a/parsons/google/google_bigquery.py b/parsons/google/google_bigquery.py index 64b6acb6d4..2f028a8a40 100644 --- a/parsons/google/google_bigquery.py +++ b/parsons/google/google_bigquery.py @@ -696,7 +696,7 @@ def copy_s3( # copy from S3 to GCS tmp_gcs_bucket = check_env.check("GCS_TEMP_BUCKET", tmp_gcs_bucket) - gcs_client = gcs_client or GoogleCloudStorage() + gcs_client = gcs_client or GoogleCloudStorage(app_creds=self.app_creds) temp_blob_uri = gcs_client.copy_s3_to_gcs( aws_source_bucket=bucket, aws_access_key_id=aws_access_key_id, @@ -809,7 +809,7 @@ def copy( schema.append(schema_row) job_config.schema = schema - gcs_client = gcs_client or GoogleCloudStorage() + gcs_client = gcs_client or GoogleCloudStorage(app_creds=self.app_creds) temp_blob_name = f"{uuid.uuid4()}.{data_type}" temp_blob_uri = gcs_client.upload_table(tbl, tmp_gcs_bucket, temp_blob_name)