Support bigquery connections for federation with cloud sql.
resource "google_bigquery_connection" "my_federation" {
connection_type = "CLOUD_SQL"
instance_id = var.my_cloud_sql_instance_id
...
}
Hey @jmcarp, the BigQuery API defines this resource as a "transfer config", so that's what we've named the Terraform resource: https://www.terraform.io/docs/providers/google/r/bigquery_data_transfer_config.html. I'm going to go ahead and close this since as far as I can tell it's already done (馃帀 ) but if there's more that I'm missing we can certainly reopen it and take another look.
Thanks @danawillow. It looks like query federation uses the bigqueryconnection API, not the bigquerydatatransfer API. Documentation is at https://cloud.google.com/bigquery/docs/reference/bigqueryconnection/rest/. I don't see a way to set up Cloud SQL federation with the transfer config resource. Am I missing something?
Nope, I think you're right! The GCP docs were misleading in this case. Reopening.
Also perhaps missing is a way to create connection credentials as the Connection object doesn't include a way to set a username and password.
Most helpful comment
Also perhaps missing is a way to create connection credentials as the
Connectionobject doesn't include a way to set a username and password.